Home | History | Annotate | Download | only in thread.thread.constr
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // <thread>
     11 
     12 // class thread
     13 //     template <class _Fp, class ..._Args,
     14 //         explicit thread(_Fp&& __f, _Args&&... __args);
     15 //  This constructor shall not participate in overload resolution
     16 //       if decay<F>::type is the same type as std::thread.
     17 
     18 
     19 #include <thread>
     20 #include <cassert>
     21 
     22 int main()
     23 {
     24     volatile std::thread t1;
     25     std::thread t2 ( t1, 1, 2.0 );
     26 }
     27