double check MSVC fix

This commit is contained in:
Yves Delley
2022-12-31 14:07:33 +01:00
parent 02f6f36aeb
commit a6901a17e8

View File

@@ -46,18 +46,7 @@ UNITS_DIAGNOSTIC_POP
#define UNITS_FMT_TO_ARG_ID(arg) static_cast<int>(arg) #define UNITS_FMT_TO_ARG_ID(arg) static_cast<int>(arg)
#define UNITS_FMT_FROM_ARG_ID(arg) static_cast<size_t>(arg) #define UNITS_FMT_FROM_ARG_ID(arg) static_cast<size_t>(arg)
#if false // This re-uses code from fmt;
// just reuse FMT_THROW - we're anyway only throwing from within string formatting code
#if FMT_EXCEPTIONS && (FMT_MSC_VERSION || defined(__NVCC__))
// work around FMT_THROW being defined without a fully qualified namespace
#define UNITS_THROW(x) ::fmt::detail::do_throw(x)
#else
#define UNITS_THROW(x) FMT_THROW(x)
#endif
#else
#if FMT_EXCEPTIONS #if FMT_EXCEPTIONS
#if FMT_MSC_VERSION || defined(__NVCC__) #if FMT_MSC_VERSION || defined(__NVCC__)
#define UNITS_THROW(x) ::fmt::detail::do_throw(x) #define UNITS_THROW(x) ::fmt::detail::do_throw(x)
@@ -71,8 +60,6 @@ UNITS_DIAGNOSTIC_POP
} while (false) } while (false)
#endif #endif
#endif
#else #else
#ifndef __cpp_lib_format #ifndef __cpp_lib_format