From 7bcd6bba4cc0b9f8fe1aff8f5f10067619ecdecc Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Wed, 3 Jul 2024 01:32:00 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20utils:=20modernize=20floating=20?= =?UTF-8?q?point=20typetrait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.hpp b/src/utils.hpp index a02053f..3bf5e41 100644 --- a/src/utils.hpp +++ b/src/utils.hpp @@ -83,7 +83,7 @@ inline T to_int(const std::string_view& str) { } template - requires std::is_floating_point::value + requires std::is_floating_point_v inline T to_floating(const std::string_view& str) { T result = 0; std::from_chars(str.data(), str.data() + str.size(), result);