Fight with windows build

This commit is contained in:
Shawn Zhong 2023-01-17 22:31:30 -06:00
parent 7536fe6a4d
commit 4556ea12de

View File

@ -686,10 +686,10 @@ struct formatter<T, Char,
}
template <typename FormatContext>
auto format(const T& t, FormatContext& ctx) const ->
auto format(T& t, FormatContext& ctx) const ->
typename FormatContext::iterator {
struct getter : T {
static auto get(const T& t) -> decltype(t.*(&getter::c)) {
static auto get(T& t) -> typename T::container_type& {
return t.*(&getter::c); // Access c through the derived class.
}
};