Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / contract / test / call_if / no_equal_call_if.cpp
index 707fb22..854cffc 100644 (file)
@@ -6,6 +6,9 @@
 
 // Test assertions skipped when operations to check them missing (e.g., `==`).
 
+// C++17 warning from Boost.Bind.
+#define _SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING
+
 #include <boost/contract/function.hpp>
 #include <boost/contract/check.hpp>
 #include <boost/contract/assert.hpp>
@@ -35,9 +38,7 @@ void push_back(std::vector<T>& vect, T const& value) {
 }
 
 struct j { // Type without operator==.
-    explicit j(int i) : j_(i) {}
-private:
-    int j_;
+    explicit j(int /* i */) {}
 };
 
 int main() {