Properly constrain basic_string(Iter, Iter, Alloc = A())
llvm-svn: 356140
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