0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Partially reverting e1b82afbbe hoping to appease VC++

This commit is contained in:
rbock 2017-12-19 09:06:56 +01:00
parent f6903e09ed
commit e49428c58c

View File

@ -124,7 +124,7 @@ namespace sqlpp
template <typename T> template <typename T>
struct column_spec_can_be_null_impl< struct column_spec_can_be_null_impl<
T, T,
typename std::enable_if<T::_traits::_tags::template count<tag::can_be_null>()>::type> typename std::enable_if<detail::is_element_of<tag::can_be_null, typename T::_traits::_tags>::value>::type>
{ {
using type = std::true_type; using type = std::true_type;
}; };
@ -145,7 +145,9 @@ namespace sqlpp
using type = std::false_type; \ using type = std::false_type; \
}; \ }; \
template <typename T> \ template <typename T> \
struct name##_impl<T, typename std::enable_if<T::_traits::_tags::template count<tag::name>()>::type> \ struct name##_impl< \
T, \
typename std::enable_if<detail::is_element_of<tag::name, typename T::_traits::_tags>::value>::type> \
{ \ { \
using type = std::true_type; \ using type = std::true_type; \
}; \ }; \
@ -324,7 +326,7 @@ namespace sqlpp
template <typename KnownAggregates, typename T> template <typename KnownAggregates, typename T>
struct is_aggregate_expression_impl<KnownAggregates, struct is_aggregate_expression_impl<KnownAggregates,
T, T,
typename std::enable_if<KnownAggregates::template count<T>()>::type> typename std::enable_if<detail::is_element_of<T, KnownAggregates>::value>::type>
{ {
using type = std::true_type; using type = std::true_type;
}; };