Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / contract / test / call_if / equal_to.cpp
index 137707e..a71c12b 100644 (file)
@@ -6,6 +6,9 @@
 
 // Test STL equal_to with call_if.
 
+// C++17 warning from Boost.Bind.
+#define _SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING
+
 #include "../detail/oteststream.hpp"
 #include <boost/contract/call_if.hpp>
 #include <boost/bind.hpp>
@@ -13,6 +16,7 @@
 #include <boost/detail/lightweight_test.hpp>
 #include <functional>
 #include <sstream>
+#include <ios>
 
 boost::contract::test::detail::oteststream out;
 
@@ -29,6 +33,8 @@ struct x {}; // Doest not have operator==.
 
 int main() {
     std::ostringstream ok;
+    ok << std::boolalpha;
+    out << std::boolalpha;
     x x1, x2;;
 
     out.str("");