Properly constrain basic_string(Iter, Iter, Alloc = A())

llvm-svn: 356140
This commit is contained in:
Eric Fiselier
2019-03-14 12:31:10 +00:00
parent 63eccf70db
commit dfce2dd21e
2 changed files with 13 additions and 4 deletions

View File

@@ -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;
}