When using MSVC with /std:c++latest, magic_enum::detail::constexpr_switch_impl's call to magic_enum::detail::invoke_r is deemed ambiguous with std::invoke_r due to argument-dependent lookup via std::forward.
This error doesn't happen on Clang or GCC when using libc++, but does happen on Clang when using the Microsoft STL.
When using MSVC with
/std:c++latest
,magic_enum::detail::constexpr_switch_impl
's call tomagic_enum::detail::invoke_r
is deemed ambiguous withstd::invoke_r
due to argument-dependent lookup viastd::forward
.This error doesn't happen on Clang or GCC when using libc++, but does happen on Clang when using the Microsoft STL.
https://godbolt.org/z/Ksscz6azE