mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Fixed type trait code
This commit is contained in:
parent
69fdaedc0d
commit
d8ae9dc778
@ -40,9 +40,9 @@ namespace sqlpp
|
|||||||
namespace detail\
|
namespace detail\
|
||||||
{\
|
{\
|
||||||
template<typename T, typename Enable = void>\
|
template<typename T, typename Enable = void>\
|
||||||
struct is_##name##_impl: std::false_type {};\
|
struct is_##name##_impl { using type = std::false_type; };\
|
||||||
template<typename T>\
|
template<typename T>\
|
||||||
struct is_##name##_impl<T, typename std::enable_if<detail::is_element_of<tag::name, typename T::_traits::_tags>::value>::type>: std::true_type {};\
|
struct is_##name##_impl<T, typename std::enable_if<detail::is_element_of<tag::name, typename T::_traits::_tags>::value>::type> { using type = std::true_type; };\
|
||||||
}\
|
}\
|
||||||
template<typename T>\
|
template<typename T>\
|
||||||
using is_##name##_t = typename detail::is_##name##_impl<T>::type;
|
using is_##name##_t = typename detail::is_##name##_impl<T>::type;
|
||||||
|
Loading…
Reference in New Issue
Block a user