VS2019 support added

This commit is contained in:
Mateusz Pusz
2020-09-04 23:06:57 +02:00
parent 71e3dba69a
commit b318e8d039
38 changed files with 253 additions and 160 deletions
+6 -2
View File
@@ -24,6 +24,10 @@
#include <cmath>
#include <iostream>
#if COMP_MSVC || COMP_GCC >= 10
#include <compare>
#endif
namespace {
// root sum of squares
@@ -101,9 +105,9 @@ public:
return measurement(val, val * rhs.relative_uncertainty());
}
#if __GNUC__ >= 10
#if COMP_MSVC || COMP_GCC >= 10
[[nodiscard]] friend constexpr auto operator<=>(const measurement& lhs, const measurement& rhs) = default;
[[nodiscard]] constexpr auto operator<=>(const measurement&) const = default;
#else