]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/lambda/test/bind_tests_advanced.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / lambda / test / bind_tests_advanced.cpp
index d696e49990588b443a0f455c55efcb440ab2254c..b33d10aaf9b96c463e3867e049ac227e3c367952 100644 (file)
@@ -121,8 +121,16 @@ void test_unlambda() {
 
   BOOST_CHECK(call_with_101(_1 + 1) == 102);
 
+#if defined(BOOST_NO_CXX11_HDR_FUNCTIONAL)
+
   BOOST_CHECK(call_with_100(bl::bind(std_functor(std::bind1st(std::plus<int>(), 1)), _1)) == 101);
 
+#else
+
+  BOOST_CHECK(call_with_100(bl::bind(std_functor(std::bind(std::plus<int>(), 1, std::placeholders::_1)), _1)) == 101);
+
+#endif
+
   // std_functor insturcts LL that the functor defines a result_type typedef
   // rather than a sig template.
   bl::bind(std_functor(std::plus<int>()), _1, _2)(i, i);