no_implicit_move_from_lvalue_thread.cpp 382 B

12345678910111213141516
  1. // Copyright (C) 2008 Anthony Williams
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/thread/thread.hpp>
  6. void do_nothing()
  7. {}
  8. void test()
  9. {
  10. boost::thread t1(do_nothing);
  11. boost::thread t2(t1);
  12. }
  13. #include "./remove_error_code_unused_warning.hpp"