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
7void do_nothing()
8{}
9
10void test()
11{
12 boost::thread t1(do_nothing);
13 boost::thread t2(t1);
14}
15
16#include "./remove_error_code_unused_warning.hpp"
17

source code of boost/libs/thread/test/no_implicit_move_from_lvalue_thread.cpp