no_implicit_assign_from_lvalue_thread.cpp 389 B

1234567891011121314151617
  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;
  12. t2=t1;
  13. }
  14. #include "./remove_error_code_unused_warning.hpp"