From b4d1ec310cd2c8a6e250c71f865c45fe7cadd5fa Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 May 2022 16:06:21 -0600 Subject: [PATCH] [algs] Declare coerce() as constexpr --- src/hb-algs.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index cdda41211..05b4df52f 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -229,11 +229,11 @@ HB_FUNCOBJ (hb_bool); template static inline -T hb_coerce (const T v) { return v; } +constexpr T hb_coerce (const T v) { return v; } template , hb_decay) && std::is_pointer::value)> static inline -T hb_coerce (const V v) { return *v; } +constexpr T hb_coerce (const V v) { return *v; } struct {