Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <type_traits>
- #include <functional>
- namespace shogun
- {
- struct CSGObject;
- struct Kernel;
- }
- namespace std
- {
- template <typename T, typename U = typename enable_if<is_same<shogun::Kernel, T>::value>::type>
- using sfinae_dummy = T;
- template <typename T>
- struct hash<sfinae_dummy<T>>
- {
- /** using statements for parent **/
- constexpr static int value = 4;
- };
- };
- namespace shogun
- {
- struct CSGObject
- {
- };
- struct Kernel
- {
- };
- }
- int main()
- {
- std::cout << std::hash<shogun::Kernel>::value << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement