From e7c6f88d2355dbf1a8d0e9f748f25946a274c5b2 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Fri, 15 Nov 2013 10:01:45 +0100 Subject: [PATCH] Remove clang warning for in() and is_null() --- include/sqlpp11/in.h | 4 ++-- include/sqlpp11/is_null.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/sqlpp11/in.h b/include/sqlpp11/in.h index 5653a3dc..9a864363 100644 --- a/include/sqlpp11/in.h +++ b/include/sqlpp11/in.h @@ -76,8 +76,8 @@ namespace sqlpp template void serialize(std::ostream& os, Db& db) const { - static_assert(NotInverted and Db::_supports_in - or _inverted and Db::_supports_not_in, "in() and/or not_in() not supported by current database"); + static_assert((NotInverted and Db::_supports_in) + or (_inverted and Db::_supports_not_in), "in() and/or not_in() not supported by current database"); _operand.serialize(os, db); os << (_inverted ? " NOT IN(" : " IN("); detail::serialize_tuple(os, db, _args, ','); diff --git a/include/sqlpp11/is_null.h b/include/sqlpp11/is_null.h index a9dc2d93..6da8b1ba 100644 --- a/include/sqlpp11/is_null.h +++ b/include/sqlpp11/is_null.h @@ -73,8 +73,8 @@ namespace sqlpp template void serialize(std::ostream& os, Db& db) const { - static_assert(NotInverted and Db::_supports_is_null - or _inverted and Db::_supports_is_not_null, "is_null() and/or is_not_null() not supported by current database"); + static_assert((NotInverted and Db::_supports_is_null) + or (_inverted and Db::_supports_is_not_null), "is_null() and/or is_not_null() not supported by current database"); _operand.serialize(os, db); os << (_inverted ? " IS NOT NULL" : " IS NULL"); }