-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
new compilation error by upgrading from 11.0.1 to 11.1.2 with std::ostreambuf_iterator #4309
Comments
Please provide a godbolt repro. |
I am not sure why you need a godbolt repro... with my explanations, it is pretty obvious what is happening. format_decimal() does not need the iterator to be a back_inserter_iterator for the template function to work perfectly. I did not go as far as looking how it was done in 11.0.1 but I suspect that FMT_ENABLE_IF(is_back_insert_iterator::value) is an addition to 11.1 beside that, you made an excellent job in this new release by eliminating all those annoying linker warnings... |
Maybe fixed by #4312 |
by visual inspection, I would say that it does... I am just curious to know what the enable_if statement accomplish.... imho, it would be nice to document in a small comment... I have solved my problem by totally removing it not knowing what was its purpose. It did not seem like the other format_decimal() overload presence could create any ambiguity for the compiler to choose which one to take... |
I have locally fixed the problem by changing the fmt/formt.h template declaration from:
to
The text was updated successfully, but these errors were encountered: