Implement LWG 2946, 3075 and 3076. Reviewed as https://reviews.llvm.org/D48616

llvm-svn: 336132
This commit is contained in:
Marshall Clow
2018-07-02 18:41:15 +00:00
parent f50ad6c311
commit 76b26852b6
28 changed files with 755 additions and 148 deletions

View File

@@ -218,4 +218,13 @@ int main()
test(S("abcdefghijklmnopqrst"), 21, S("12345678901234567890"), S("can't happen"));
}
#endif
#if TEST_STD_VER > 3
{ // LWG 2946
std::string s;
s.insert(0, {"abc", 1});
assert(s.size() == 1);
assert(s == "a");
}
#endif
}