From 69fdaedc0d61d2fd102868e6de105084127e4612 Mon Sep 17 00:00:00 2001 From: rbock Date: Mon, 21 Jul 2014 05:33:45 +0200 Subject: [PATCH] Adjusted type_traits to compile with clang-3.1, too The new version is cleaner anyway, since it can be used with any type now. --- include/sqlpp11/type_traits.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/sqlpp11/type_traits.h b/include/sqlpp11/type_traits.h index f74eea08..4558863e 100644 --- a/include/sqlpp11/type_traits.h +++ b/include/sqlpp11/type_traits.h @@ -33,19 +33,19 @@ namespace sqlpp { #define SQLPP_IS_VALUE_TRAIT_GENERATOR(name) \ + namespace tag\ + {\ + struct name{};\ + };\ namespace detail\ {\ template\ struct is_##name##_impl: std::false_type {};\ template\ - struct is_##name##_impl::value>::type>: std::true_type {};\ + struct is_##name##_impl::value>::type>: std::true_type {};\ }\ - namespace tag\ - {\ - struct name{};\ - };\ template\ - using is_##name##_t = detail::is_element_of; + using is_##name##_t = typename detail::is_##name##_impl::type; #define SQLPP_IS_COLUMN_TRAIT_GENERATOR(name) \ namespace detail\