-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
to_string_view
interferes with dynamic_format_arg_store
#2180
Comments
Thanks for reporting. We should definitely fix this but is there any particular reason you define |
IRL it's a legacy When I upgraded from libfmt-6.1.1 to -7.1.3, I started using I've since written a |
Fixed in 6ae402f. |
The presence of a
to_string_view(T)
function (visible by ADL as usual) breaksdynamic_format_arg_store.push_back(T)
.https://gcc.godbolt.org/z/j1xdje
The problem is probably just the use of
detail::is_string<T>
in the privatestored_type<T>
metafunction.Anything with a
to_string_view(T)
will have adetail::is_string<T>::value == true
.https://github.com/fmtlib/fmt/blob/master/include/fmt/args.h#L97-L99
When we build with
-DHAS_TO_STRING_VIEW
, we get a cascade of failure:The salient part is here:
The text was updated successfully, but these errors were encountered: