Skip to content

Commit

Permalink
Fix gcc build
Browse files Browse the repository at this point in the history
  • Loading branch information
twanvl committed May 17, 2020
1 parent 7ac44fc commit a0f077e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/util/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/util/tagged_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0f077e

Please sign in to comment.