//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03 // // template struct pair // template // pair(piecewise_construct_t, tuple first_args, // tuple second_args); #include #include #include #include "archetypes.hpp" int main() { using NonThrowingConvert = NonThrowingTypes::ConvertingType; using ThrowingConvert = NonTrivialTypes::ConvertingType; static_assert(!std::is_nothrow_constructible, std::piecewise_construct_t, std::tuple, std::tuple>::value, ""); static_assert(!std::is_nothrow_constructible, std::piecewise_construct_t, std::tuple, std::tuple>::value, ""); static_assert(!std::is_nothrow_constructible, std::piecewise_construct_t, std::tuple, std::tuple>::value, ""); static_assert( std::is_nothrow_constructible, std::piecewise_construct_t, std::tuple, std::tuple>::value, ""); }