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

Overloading issue in stringer.h #14

Open
sjalloq opened this issue Feb 2, 2019 · 1 comment
Open

Overloading issue in stringer.h #14

sjalloq opened this issue Feb 2, 2019 · 1 comment

Comments

@sjalloq
Copy link

sjalloq commented Feb 2, 2019

Hi there,

I'm trying to compile on OS X using XCode and am getting the following error.

Thanks.

g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
In file included from ./json_lexer.h:67:
./stringer.h:590:21: error: call to 'toString' is ambiguous
        m_buffer += toString(arg,10);
                    ^~~~~~~~
./stringer.h:100:21: note: candidate function
        inline std::string toString(int64_t value, int base = 10, unsigned int padding = 0)
                           ^
./stringer.h:143:21: note: candidate function
        inline std::string toString(int value, int base = 10)
                           ^
./stringer.h:149:21: note: candidate function
        inline std::string toString(unsigned int value, int base = 10)
                           ^
1 error generated.
@sjalloq
Copy link
Author

sjalloq commented Feb 2, 2019

The same error also occurs when using Arm gcc.

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