From c3e4148ee22c85c73102f627e42bd4031102a8a2 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Fri, 28 Feb 2020 16:03:23 -0500 Subject: [PATCH] Fix msvc warning --- test/constexpr_tests.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/constexpr_tests.hpp b/test/constexpr_tests.hpp index 54c33cf..ec83111 100644 --- a/test/constexpr_tests.hpp +++ b/test/constexpr_tests.hpp @@ -566,11 +566,11 @@ testConstantEvaluation() return true; #elif defined(BOOST_STATIC_STRING_CPP11) // c++11 constexpr tests - return cstatic_string().size() + - cstatic_string().empty() + + return bool(cstatic_string().size() + cstatic_string().length() + cstatic_string().max_size() + - cstatic_string().capacity(); + cstatic_string().capacity()) && + cstatic_string().empty()); #endif } } // static_strings