7 #ifndef BOOST_NOWIDE_DETAIL_IS_PATH_HPP_INCLUDED 8 #define BOOST_NOWIDE_DETAIL_IS_PATH_HPP_INCLUDED 10 #include <type_traits> 21 template<
typename U, U& (U::*)(), U (U::*)() const>
24 static std::true_type test(Check<U, &U::make_preferred, &U::filename>*);
26 static std::false_type test(...);
28 static constexpr
bool value = decltype(test<T>(0))::value;
31 template<
typename Path,
typename Result>
32 using enable_if_path_t =
typename std::enable_if<is_path<Path>::value, Result>::type;