Fix gcc build

This commit is contained in:
Twan van Laarhoven
2020-05-18 00:10:02 +02:00
parent 7ac44fcff1
commit a0f077e3b6
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -222,7 +222,8 @@ String make_non_capturing(const String& re);
// ----------------------------------------------------------------------------- : Iterator utilities
struct end_sentinel_t {} end_sentinel;
struct end_sentinel_t {};
const end_sentinel_t end_sentinel;
// Iterate over a string, removing all matching substrings.
// match.operator(it,end) should return false or return true and advance it past the substring
+2 -2
View File
@@ -220,9 +220,9 @@ String tagged_substr_replace(const String& input, size_t start, size_t end, cons
*/
bool check_tagged(const String& str, bool check_balance = true);
#ifdef _DEBUG
#define assert_tagged(x) assert(check_tagged(x))
#define assert_tagged(...) assert(check_tagged(__VA_ARGS__))
#else
#define assert_tagged(x) do{}while(0)
#define assert_tagged(...) do{}while(0)
#endif
/// Simplify a tagged string