From 4400d355914545cc31f34edce8c238baf6fce546 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 2 Jan 2024 19:14:32 -0800 Subject: [PATCH] Clarify why we can't have nice things --- include/fmt/core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fmt/core.h b/include/fmt/core.h index e5b1e4f08eb3..c060ed7cbc2c 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);