From d49175869745b9ee24f6cea3e84c967b6986d315 Mon Sep 17 00:00:00 2001 From: Jonas Hoppe <162709928+czjhoppe@users.noreply.github.com> Date: Fri, 30 Aug 2024 13:14:54 +0200 Subject: [PATCH] [msvc][fix] return type of chrono_literal "s" is not defined. Is double for msvc --- test/static/quantity_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/static/quantity_test.cpp b/test/static/quantity_test.cpp index 9d93cfe5..3beeea07 100644 --- a/test/static/quantity_test.cpp +++ b/test/static/quantity_test.cpp @@ -355,7 +355,8 @@ static_assert(quantity{123}.quantity_spec == kind_of); #if MP_UNITS_HOSTED using namespace std::chrono_literals; static_assert(std::is_same_v); -static_assert(std::is_same_v); +//return type for "s" is not specified. is double for msvc +//static_assert(std::is_same_v); static_assert(quantity{24h}.unit == si::hour); static_assert(quantity{24h}.quantity_spec == kind_of); #endif