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

Fix ambiguous complier error C2666 in vs2017.The '+' opeator may cause ambiguity. #962

Merged
merged 1 commit into from
Dec 5, 2018

Conversation

liuping1997
Copy link
Contributor

vs2017 complier error log:
spdlog\fmt\bundled\format.h(3036): error C2666: “operator +”:
....
...
spdlog\fmt\bundled\format.h(3036): note: or “builtin C++ operator+(char [22], __int64)”
spdlog\fmt\bundled\format.h(3036): note: try to match the parameter list“(char [22], fmt::v5::format_int::<unnamed-enum-BUFFER_SIZE>)”

format.h 3036 line:
char *ptr = buffer_ + BUFFER_SIZE - 1;//The 'BUFFER_SIZE' exist implicit conversion

@vitaut vitaut merged commit 2ff4996 into fmtlib:master Dec 5, 2018
@vitaut
Copy link
Contributor

vitaut commented Dec 5, 2018

It looks like a MSVC bug, so please report to your vendor. Nevertheless I merged this as a workaround, thanks.

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

Successfully merging this pull request may close these issues.

2 participants