More constexpr friendly replace and insert with is_constant_evaluated

This commit is contained in:
Krystian Stasiowski
2020-01-03 19:01:34 -05:00
parent e1e992380a
commit 26b9f7df27
3 changed files with 33 additions and 2 deletions

View File

@ -191,6 +191,11 @@ testConstantEvaluation()
a.replace(a.begin(), a.end(), a.begin(), a.end());
a.replace(a.begin(), a.end(), {'a'});
#ifdef BOOST_STATIC_STRING_USE_IS_CONST_EVAL
a.replace(a.begin(), a.end(), "a");
a.replace(a.begin(), a.end(), "a", 1);
#endif
// find
a.find(a);
a.find("a", 0, 1);