mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 10:07:41 +08:00
Properly constrain basic_string(Iter, Iter, Alloc = A())
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@356140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -116,6 +116,15 @@ int main(int, char**)
|
||||
test(input_iterator<const char*>(s), input_iterator<const char*>(s+50), A());
|
||||
}
|
||||
#endif
|
||||
{
|
||||
static_assert((!std::is_constructible<std::string, std::string,
|
||||
std::string>::value),
|
||||
"");
|
||||
static_assert(
|
||||
(!std::is_constructible<std::string, std::string, std::string,
|
||||
std::allocator<char> >::value),
|
||||
"");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user