From 814f937e030162f9c3c82810ca47000c3a77089f Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 28 Dec 2024 22:19:35 +0100 Subject: [PATCH] fix: MSVC build fixed --- src/core/include/mp-units/framework/quantity_spec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/framework/quantity_spec.h b/src/core/include/mp-units/framework/quantity_spec.h index 17d2af1e..4fc1da9a 100644 --- a/src/core/include/mp-units/framework/quantity_spec.h +++ b/src/core/include/mp-units/framework/quantity_spec.h @@ -1033,8 +1033,8 @@ template template [[nodiscard]] consteval specs_convertible_result convertible_kinds(From from, To to) { - constexpr auto from_root = detail::get_kind_tree_root(from); - constexpr auto to_root = detail::get_kind_tree_root(to); + constexpr auto from_root = detail::get_kind_tree_root(From{}); + constexpr auto to_root = detail::get_kind_tree_root(To{}); using enum specs_convertible_result; if constexpr (QuantityKindSpec) {