-
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
A new namespace was introduced in 11.1.0 fmt_detail
#4324
Comments
fmt_detail
We can't use |
I made a PR with the simplest change I could think: |
It looks like when On the other hand, if the user-defined templated https://godbolt.org/z/49Tr89Pej I also tried the following approach, completely removing the template <class, class = void> struct has_tzset : std::false_type {};
template <class T>
struct has_tzset<T, void_t<decltype(_tzset())>> : std::true_type {};
template <typename, typename = void>
struct has_current_zone : std::false_type {};
template <typename T>
struct has_current_zone<T, void_t<decltype(std::chrono::current_zone())>>
: std::true_type {}; Attempting to call I think that if someone tries to use two different versions of Feel free to close this issue, I think it's not worth the effort to change. Just wanted to share my findings in case they’re useful. Thanks again for the amazing work on this library! 🚀 |
I believe code should be consistent and use the existing
fmt::detail
namespace. There is a new namespace that was introduced in latest versionfmt_detail
. Would it be possible to use the existingfmt::detail
or afmt::detail::chrono
namespace ?fmt/include/fmt/chrono.h
Line 25 in 41539c2
For example when bundling
libfmt
under a custom namespace with a script, that is now an additional namespace that needs to be renamedThe text was updated successfully, but these errors were encountered: