fix: a workaround for compilation error on MSVC and gcc-10 added

This commit is contained in:
Mateusz Pusz committed 2023-03-30 13:34:06 +02:00
1 parent 1bee3439d3
commit 99283dce1c
8 files changed
+25 -12

No files matched your search

+1 -1
View File
@@ -94,7 +94,7 @@ template<Dimension D, UnitOf<D> U>
struct reference {
using dimension = D;
using unit = U;
static constexpr UNITS_MSVC_WORKAROUND(Magnitude) auto mag = dimension::mag * unit::mag;
static constexpr UNITS_CONSTRAINED_AUTO_WORKAROUND(Magnitude) auto mag = dimension::mag * unit::mag;
// Hidden Friends
// Below friend functions are to be found via argument-dependent lookup only