mirror of
https://github.com/boostorg/static_string.git
synced 2025-07-29 12:07:42 +02:00
More constexpr friendly replace and insert with is_constant_evaluated
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user