While applying N4258, I forgot about LWG#2455, which modified the modifications. Correct those - h/t: Howard
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@239004 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -40,12 +40,7 @@ int main()
|
||||
}
|
||||
{
|
||||
typedef std::basic_string<char, std::char_traits<char>, some_alloc<char>> C;
|
||||
// See N4258 - basic_string<char, traits, Allocator>::basic_string() noexcept;
|
||||
#if TEST_STD_VER <= 14
|
||||
static_assert(!std::is_nothrow_default_constructible<C>::value, "");
|
||||
#else
|
||||
static_assert( std::is_nothrow_default_constructible<C>::value, "");
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user