@@ -2131,10 +2131,10 @@ struct formatter<weekday, Char> : formatter<calendar_base, Char> {
2131
2131
auto format (weekday wd, FormatContext& ctx) const -> decltype(ctx.out()) {
2132
2132
auto time = std::tm ();
2133
2133
time .tm_wday = static_cast <int >(wd.c_encoding ());
2134
- if (use_tm_formatter_) {
2134
+ if (this -> use_tm_formatter_ ) {
2135
2135
return formatter<std::tm , Char>::format (time , ctx);
2136
2136
}
2137
- detail::get_locale loc (localized_, ctx.locale ());
2137
+ detail::get_locale loc (this -> localized_ , ctx.locale ());
2138
2138
auto w = detail::tm_writer<decltype (ctx.out ()), Char>(loc, ctx.out (), time );
2139
2139
w.on_abbr_weekday ();
2140
2140
return w.out ();
@@ -2148,10 +2148,10 @@ struct formatter<day, Char> : formatter<calendar_base, Char> {
2148
2148
auto format (day d, FormatContext& ctx) const -> decltype(ctx.out()) {
2149
2149
auto time = std::tm ();
2150
2150
time .tm_mday = static_cast <int >(static_cast <unsigned >(d));
2151
- if (use_tm_formatter_) {
2151
+ if (this -> use_tm_formatter_ ) {
2152
2152
return formatter<std::tm , Char>::format (time , ctx);
2153
2153
}
2154
- detail::get_locale loc (localized_, ctx.locale ());
2154
+ detail::get_locale loc (this -> localized_ , ctx.locale ());
2155
2155
auto w = detail::tm_writer<decltype (ctx.out ()), Char>(loc, ctx.out (), time );
2156
2156
w.on_day_of_month (detail::numeric_system::standard);
2157
2157
return w.out ();
@@ -2165,10 +2165,10 @@ struct formatter<month, Char> : formatter<calendar_base, Char> {
2165
2165
auto format (month m, FormatContext& ctx) const -> decltype(ctx.out()) {
2166
2166
auto time = std::tm ();
2167
2167
time .tm_mon = static_cast <int >(static_cast <unsigned >(m)) - 1 ;
2168
- if (use_tm_formatter_) {
2168
+ if (this -> use_tm_formatter_ ) {
2169
2169
return formatter<std::tm , Char>::format (time , ctx);
2170
2170
}
2171
- detail::get_locale loc (localized_, ctx.locale ());
2171
+ detail::get_locale loc (this -> localized_ , ctx.locale ());
2172
2172
auto w = detail::tm_writer<decltype (ctx.out ()), Char>(loc, ctx.out (), time );
2173
2173
w.on_abbr_month ();
2174
2174
return w.out ();
@@ -2182,10 +2182,10 @@ struct formatter<year, Char> : formatter<calendar_base, Char> {
2182
2182
auto format (year y, FormatContext& ctx) const -> decltype(ctx.out()) {
2183
2183
auto time = std::tm ();
2184
2184
time .tm_year = static_cast <int >(y) - 1900 ;
2185
- if (use_tm_formatter_) {
2185
+ if (this -> use_tm_formatter_ ) {
2186
2186
return formatter<std::tm , Char>::format (time , ctx);
2187
2187
}
2188
- detail::get_locale loc (localized_, ctx.locale ());
2188
+ detail::get_locale loc (this -> localized_ , ctx.locale ());
2189
2189
auto w = detail::tm_writer<decltype (ctx.out ()), Char>(loc, ctx.out (), time );
2190
2190
w.on_year (detail::numeric_system::standard);
2191
2191
return w.out ();
@@ -2202,10 +2202,10 @@ struct formatter<year_month_day, Char> : formatter<calendar_base, Char> {
2202
2202
time .tm_year = static_cast <int >(val.year ()) - 1900 ;
2203
2203
time .tm_mon = static_cast <int >(static_cast <unsigned >(val.month ())) - 1 ;
2204
2204
time .tm_mday = static_cast <int >(static_cast <unsigned >(val.day ()));
2205
- if (use_tm_formatter_) {
2205
+ if (this -> use_tm_formatter_ ) {
2206
2206
return formatter<std::tm , Char>::format (time , ctx);
2207
2207
}
2208
- detail::get_locale loc (localized_, ctx.locale ());
2208
+ detail::get_locale loc (this -> localized_ , ctx.locale ());
2209
2209
auto w = detail::tm_writer<decltype (ctx.out ()), Char>(loc, ctx.out (), time );
2210
2210
w.on_iso_date ();
2211
2211
return w.out ();
0 commit comments