mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-06 05:00:37 -06:00
Reverted logic change that led to too many warnings with gcc
This commit is contained in:
@@ -43,26 +43,26 @@ namespace sqlpp
|
||||
template <bool... B>
|
||||
struct all
|
||||
{
|
||||
using type = std::is_same<logic_helper<B...>, logic_helper<(B, true)...>>;
|
||||
using type = std::is_same<logic_helper<B...>, logic_helper<(B or true)...>>;
|
||||
};
|
||||
|
||||
template <bool... B>
|
||||
using all_t = std::is_same<logic_helper<B...>, logic_helper<(B, true)...>>;
|
||||
using all_t = std::is_same<logic_helper<B...>, logic_helper<(B or true)...>>;
|
||||
|
||||
// workaround for msvc bug https://connect.microsoft.com/VisualStudio/Feedback/Details/2086629
|
||||
template <bool... B>
|
||||
struct any
|
||||
{
|
||||
using type =
|
||||
std::integral_constant<bool, not std::is_same<logic_helper<B...>, logic_helper<(B, false)...>>::value>;
|
||||
std::integral_constant<bool, not std::is_same<logic_helper<B...>, logic_helper<(B and false)...>>::value>;
|
||||
};
|
||||
|
||||
template <bool... B>
|
||||
using any_t =
|
||||
std::integral_constant<bool, not std::is_same<logic_helper<B...>, logic_helper<(B, false)...>>::value>;
|
||||
std::integral_constant<bool, not std::is_same<logic_helper<B...>, logic_helper<(B and false)...>>::value>;
|
||||
|
||||
template <bool... B>
|
||||
using none_t = std::is_same<logic_helper<B...>, logic_helper<(B, false)...>>;
|
||||
using none_t = std::is_same<logic_helper<B...>, logic_helper<(B and false)...>>;
|
||||
|
||||
template <bool>
|
||||
struct not_impl;
|
||||
|
||||
Reference in New Issue
Block a user