mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 08:01:44 +00:00
Properly constrain basic_string(Iter, Iter, Alloc = A())
llvm-svn: 356140
This commit is contained in:
1 parent
63eccf70db
commit
dfce2dd21e
2 files changed
+13
-4
No files matched your search
@@ -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