Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qualify begin() and end() in the C++98 code #19

Open
mfeemster opened this issue Jun 19, 2015 · 0 comments
Open

Qualify begin() and end() in the C++98 code #19

mfeemster opened this issue Jun 19, 2015 · 0 comments

Comments

@mfeemster
Copy link

If prettyprint98.hpp is being built with a C++11 compiler, the calls to begin() and end() are ambiguous with the std:: versions of them, and produce an error. Qualify them like so around line 197:

if (pretty_print::begin(_container) != pretty_print::end(_container))
            for (TIter it = pretty_print::begin(_container), it_end = pretty_print::end(_container);;)

I'm sure the intent with the C++98 version is that it is *not being built with a C++11 compiler, but just to be safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant