Adjust test to pass with old std::string

* testsuite/21_strings/basic_string/lwg2946.cc: Adjust for
	compatibility with old COW std::string.

From-SVN: r251981
This commit is contained in:
Jonathan Wakely 2017-09-11 17:54:57 +01:00 committed by Jonathan Wakely
parent eaddd128de
commit 47d7966a70
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-09-11 Jonathan Wakely <jwakely@redhat.com>
* testsuite/21_strings/basic_string/lwg2946.cc: Adjust for
compatibility with old COW std::string.
2017-09-09 Gerald Pfeifer <gerald@pfeifer.com>
* doc/xml/manual/allocator.xml: Adjust link for Hoard.

View File

@ -29,7 +29,7 @@ int main()
s.assign({"abc", 1});
s.insert(0, {"abc", 1});
s.replace(0, 1, {"abc", 1});
s.replace(s.cbegin(), s.cbegin(), {"abc", 1});
s.replace(s.begin(), s.begin(), {"abc", 1});
s.find({"abc", 1});
s.rfind({"abc", 1});
s.find_first_of({"abc", 1});