You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've compiled fmt(7ce7def) as a shared library with Clang 3.9.0, when i include the fmt/format.h header in my project clang warns about format_float for double and long double not being explicitly instantiated.
Now my guess is that since it is explicitly instantiated in the format.cc, but where i'm using the function is not the same TU, it needs to be either explicitly instantiated again (by me) or even better format.h should contain an extern template declaration (i did that and the warning went away), because the template is effectively instantiated "somewhere else".
The text was updated successfully, but these errors were encountered:
I've compiled fmt(7ce7def) as a shared library with Clang 3.9.0, when i include the fmt/format.h header in my project clang warns about format_float for double and long double not being explicitly instantiated.
Now my guess is that since it is explicitly instantiated in the format.cc, but where i'm using the function is not the same TU, it needs to be either explicitly instantiated again (by me) or even better format.h should contain an extern template declaration (i did that and the warning went away), because the template is effectively instantiated "somewhere else".
The text was updated successfully, but these errors were encountered: