diff --git a/include/fmt/core.h b/include/fmt/core.h index e5b1e4f0..c060ed7c 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1305,6 +1305,7 @@ template class value { template FMT_CONSTEXPR20 FMT_INLINE value(T& val) { using value_type = remove_const_t; + // T may overload operator& e.g. std::vector::reference in libc++. #ifdef __cpp_if_constexpr if constexpr (std::is_same::value) custom.value = const_cast(&val);