mirror of
https://github.com/boostorg/static_string.git
synced 2026-02-22 18:25:01 +01:00
Work around GCC 9 rejecting a legitimate pointer comparison in a constexpr context
This commit is contained in:
@@ -256,7 +256,8 @@ testConstantEvaluation()
|
||||
a.replace(a.begin(), a.end(), a.begin(), a.end());
|
||||
a.replace(a.begin(), a.end(), {'a'});
|
||||
|
||||
#ifdef BOOST_STATIC_STRING_IS_CONST_EVAL
|
||||
#if defined(BOOST_STATIC_STRING_IS_CONST_EVAL) \
|
||||
&& !defined(BOOST_STATIC_STRING_CONSTEXPR_PTR_CMP_BROKEN)
|
||||
a.clear();
|
||||
a.replace(a.begin(), a.end(), "a");
|
||||
a.replace(a.begin(), a.end(), "a", 1);
|
||||
@@ -444,7 +445,8 @@ testConstantEvaluation()
|
||||
a.replace(a.begin(), a.end(), a.begin(), a.end());
|
||||
a.replace(a.begin(), a.end(), {'a'});
|
||||
|
||||
#ifdef BOOST_STATIC_STRING_IS_CONST_EVAL
|
||||
#if defined(BOOST_STATIC_STRING_IS_CONST_EVAL) \
|
||||
&& !defined(BOOST_STATIC_STRING_CONSTEXPR_PTR_CMP_BROKEN)
|
||||
a.clear();
|
||||
a.replace(a.begin(), a.end(), "a");
|
||||
a.replace(a.begin(), a.end(), "a", 1);
|
||||
|
||||
Reference in New Issue
Block a user