From a0326e9b21ba4220c675e2e03381c2c21340a146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Wed, 19 Mar 2025 16:37:47 +0100 Subject: [PATCH] Use constexpr ifs --- Isosurfacing_3/include/CGAL/Isosurfacing_3/IO/Image_3.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Isosurfacing_3/include/CGAL/Isosurfacing_3/IO/Image_3.h b/Isosurfacing_3/include/CGAL/Isosurfacing_3/IO/Image_3.h index 1812bf298ee..c41274fdf8b 100644 --- a/Isosurfacing_3/include/CGAL/Isosurfacing_3/IO/Image_3.h +++ b/Isosurfacing_3/include/CGAL/Isosurfacing_3/IO/Image_3.h @@ -103,14 +103,14 @@ CGAL::Image_3 convert_grid_to_image(const Grid& grid, // select number type WORD_KIND wordkind; - if(std::is_floating_point::value) // @fixme seems meaningless given that vx vy vz are doubles + if constexpr(std::is_floating_point_v) wordkind = WK_FLOAT; else wordkind = WK_FIXED; // select signed or unsigned SIGN sign; - if(std::is_signed::value) + if constexpr(std::is_signed_v) sign = SGN_SIGNED; else sign = SGN_UNSIGNED;