From 863c755894a19f6f0fffe99ccef872375a322600 Mon Sep 17 00:00:00 2001 From: Osyotr Date: Sun, 24 Dec 2023 18:55:00 +0300 Subject: [PATCH] Remove invalid constexpr std::round is not constexpr until C++23 Signed-off-by: Osyotr --- drape/stipple_pen_resource.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drape/stipple_pen_resource.hpp b/drape/stipple_pen_resource.hpp index 73c3624526..769debdded 100644 --- a/drape/stipple_pen_resource.hpp +++ b/drape/stipple_pen_resource.hpp @@ -22,7 +22,7 @@ uint32_t constexpr kMaxStipplePenLength = 512; /// @todo Should be equal with k // Based on ./data/patterns.txt, the most of patterns have 2 entries (4 entries for triangles pattern). using PenPatternT = buffer_vector; -inline constexpr uint16_t PatternFloat2Pixel(double d) +inline uint16_t PatternFloat2Pixel(double d) { return static_cast(std::round(d)); }