diff --git a/include/sqlpp11/data_types/boolean/operand.h b/include/sqlpp11/data_types/boolean/operand.h index da68d711..b211dab3 100644 --- a/include/sqlpp11/data_types/boolean/operand.h +++ b/include/sqlpp11/data_types/boolean/operand.h @@ -27,6 +27,8 @@ #ifndef SQLPP11_DATA_TYPES_BOOLEAN_OPERAND_H #define SQLPP11_DATA_TYPES_BOOLEAN_OPERAND_H +#include // Required for some compilers to use aliases for boolean operators + #include #include #include @@ -59,7 +61,7 @@ namespace sqlpp bool _is_trivial() const { - return _t == false; + return not _t; } _value_t _t; diff --git a/include/sqlpp11/logic.h b/include/sqlpp11/logic.h index c82003ab..61ef8af6 100644 --- a/include/sqlpp11/logic.h +++ b/include/sqlpp11/logic.h @@ -43,26 +43,26 @@ namespace sqlpp template struct all { - using type = std::is_same, logic_helper<(B or true)...>>; + using type = std::is_same, logic_helper<(B, true)...>>; }; template - using all_t = std::is_same, logic_helper<(B or true)...>>; + using all_t = std::is_same, logic_helper<(B, true)...>>; // workaround for msvc bug https://connect.microsoft.com/VisualStudio/Feedback/Details/2086629 template struct any { using type = - std::integral_constant, logic_helper<(B and false)...>>::value>; + std::integral_constant, logic_helper<(B, false)...>>::value>; }; template using any_t = - std::integral_constant, logic_helper<(B and false)...>>::value>; + std::integral_constant, logic_helper<(B, false)...>>::value>; template - using none_t = std::is_same, logic_helper<(B and false)...>>; + using none_t = std::is_same, logic_helper<(B, false)...>>; template struct not_impl;