mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 04:14:27 +02:00
fix: arg.visit
support fixed
This commit is contained in:
@@ -150,7 +150,7 @@ template<typename Int>
|
|||||||
template<class Handler, typename FormatArg>
|
template<class Handler, typename FormatArg>
|
||||||
[[nodiscard]] constexpr int get_dynamic_spec(FormatArg arg)
|
[[nodiscard]] constexpr int get_dynamic_spec(FormatArg arg)
|
||||||
{
|
{
|
||||||
#if (defined MP_UNITS_USE_FMTLIB && FMT_VERSION >= 110000) || __cplusplus > 202302
|
#if (defined MP_UNITS_USE_FMTLIB && FMT_VERSION >= 110000) || __cpp_lib_format > 202306L
|
||||||
const unsigned long long value = arg.visit(Handler{});
|
const unsigned long long value = arg.visit(Handler{});
|
||||||
#else
|
#else
|
||||||
const unsigned long long value = MP_UNITS_STD_FMT::visit_format_arg(Handler{}, arg);
|
const unsigned long long value = MP_UNITS_STD_FMT::visit_format_arg(Handler{}, arg);
|
||||||
|
Reference in New Issue
Block a user