File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/core/include/mp-units/bits Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -293,18 +293,24 @@ struct dynamic_spec_id_handler {
293293 {
294294 const int id = MP_UNITS_FMT_FROM_ARG_ID (ctx.next_arg_id ());
295295 ref = fmt_arg_ref<Char>(id);
296- #if MP_UNITS_USE_FMTLIB || __cpp_lib_format >= 202305L
296+ #if MP_UNITS_USE_FMTLIB
297297 ctx.check_dynamic_spec (id);
298+ #elif __cpp_lib_format >= 202305L
299+ ctx.check_dynamic_spec_integral (MP_UNITS_FMT_TO_ARG_ID (id));
298300#endif
299301 }
302+
300303 constexpr void on_index (int id)
301304 {
302305 ref = fmt_arg_ref<Char>(id);
303306 ctx.check_arg_id (MP_UNITS_FMT_TO_ARG_ID (id));
304- #if MP_UNITS_USE_FMTLIB || __cpp_lib_format >= 202305L
307+ #if MP_UNITS_USE_FMTLIB
305308 ctx.check_dynamic_spec (id);
309+ #elif __cpp_lib_format >= 202305L
310+ ctx.check_dynamic_spec_integral (MP_UNITS_FMT_TO_ARG_ID (id));
306311#endif
307312 }
313+
308314#if MP_UNITS_USE_FMTLIB
309315 constexpr void on_name ([[maybe_unused]] std::basic_string_view<Char> id)
310316 {
You can’t perform that action at this time.
0 commit comments