Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / thread / test / test_thread_launching.cpp
index ee309e4..656a46e 100644 (file)
@@ -2,7 +2,10 @@
 //
 //  Distributed under the Boost Software License, Version 1.0. (See accompanying
 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-#include <boost/thread/thread.hpp>
+
+#define BOOST_THREAD_VERSION 3
+
+#include <boost/thread/thread_only.hpp>
 #include <boost/test/unit_test.hpp>
 #include <boost/ref.hpp>
 #include <boost/utility.hpp>
@@ -60,6 +63,7 @@ void test_thread_callable_object_no_arguments()
 struct callable_noncopyable_no_args:
     boost::noncopyable
 {
+      callable_noncopyable_no_args() : boost::noncopyable() {}
     static bool called;
 
     void operator()() const
@@ -227,16 +231,4 @@ boost::unit_test::test_suite* init_unit_test_suite(int, char*[])
     return test;
 }
 
-void remove_unused_warning()
-{
-
-  //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
-  //(void)boost::unit_test::first_failed_assertion;
 
-  //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
-  //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
-  (void)boost::test_tools::check_is_close;
-  (void)boost::test_tools::check_is_small;
-
-
-}