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 {