More N4258 changes. This time vector's constructors
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@238990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -39,11 +39,21 @@ int main()
|
||||
}
|
||||
{
|
||||
typedef std::vector<bool, other_allocator<bool>> C;
|
||||
// See N4258 - vector<T, 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
|
||||
}
|
||||
{
|
||||
typedef std::vector<bool, some_alloc<bool>> C;
|
||||
// See N4258 - vector<T, 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