]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/function/test/rvalues_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / function / test / rvalues_test.cpp
index 977f4ba7fa48658ece4108a1d42ae74cc10fca17..28545d53af102e71a9eff61ec1d558c69ce9f216 100644 (file)
@@ -6,12 +6,13 @@
 
 // For more information, see http://www.boost.org
 
+#include <boost/function.hpp>
+#include <boost/move/move.hpp>
+#include <boost/core/lightweight_test.hpp>
 #include <iostream>
 #include <cstdlib>
 
-#include <boost/test/minimal.hpp>
-#include <boost/function.hpp>
-#include <boost/move/move.hpp>
+#define BOOST_CHECK BOOST_TEST
 
 class only_movable {
 private:
@@ -63,7 +64,7 @@ int three(std::string&&) { return 1; }
 std::string&& four(std::string&& s) { return boost::move(s); }
 #endif
 
-int test_main(int, char*[])
+int main()
 {
     using boost::function;
 
@@ -102,5 +103,5 @@ int test_main(int, char*[])
     BOOST_CHECK(f4(std::string("world")) == "world");
 #endif
 
-    return 0;
+    return boost::report_errors();
 }