Skip to content
Snippets Groups Projects
Commit 587c08bf authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix detection of normalize method

parent d35f8489
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -9,6 +9,7 @@
#define __TYPE_TRAITS_HPP_
 
#include <type_traits>
#include <utility>
 
namespace std {
 
......@@ -29,7 +30,7 @@ namespace std {
typedef char (&No)[2];
 
template<class U>
static Yes test(U * data, typename std::enable_if< std::is_pointer<decltype(data->normalize())>::value>::type * = 0);
static Yes test(U * data, typename std::enable_if< std::is_pointer<decltype(std::move ( * data ).normalize())>::value>::type * = 0);
static No test(...);
static const bool value = sizeof(Yes) == sizeof(has_normalize::test((typename std::remove_reference<T>::type*)0));
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment