26 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// <thread>10 11// class thread12// template <class _Fp, class ..._Args,13// explicit thread(_Fp&& __f, _Args&&... __args);14// This constructor shall not participate in overload resolution15// if decay<F>::type is the same type as std::thread.16 17 18#include <thread>19 20int main(int, char**)21{22 volatile std::thread t1;23 std::thread t2 ( t1, 1, 2.0 );24 return 0;25}26