std::begin and std::end usage without specifying std namespace #2359
Labels
kind: bug
state: stale
the issue has not been updated in a while and will be closed automatically soon unless it is updated
What is the issue you have?
Name clash with "end" symbol
Working with an existing code base, where an
extern int end;
is declared in one of header files causes ambiguity.Please describe the steps to reproduce the issue.
What is the expected behavior?
That library uses std::begin/std::end and avoids the ambiguity with other symbols from global namespace.
The issue seem to only appear in line 5094 (json.hpp, single header):
Following change seems to fix the issue:
Which compiler and operating system are you using?
Which version of the library did you use?
The text was updated successfully, but these errors were encountered: