summaryrefslogtreecommitdiff
path: root/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp
blob: 02b6893eddf45a8a48bf12f923c93e33d0a0506d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (C) 2008 Anthony Williams
//
//  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>

void do_nothing()
{}

void test()
{
    boost::thread t1(do_nothing);
    boost::thread t2;
    t2=t1;
}