From 4e43a46993780e9adbcccb3b7dd74aeb36fada2d 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 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);