//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // class packaged_task // template // packaged_task(F&& f); // These constructors shall not participate in overload resolution if // decay::type is the same type as std::packaged_task. #include #include struct A {}; typedef std::packaged_task PT; typedef volatile std::packaged_task VPT; int main() { PT p { VPT{} }; }