Make hb_coerce static inline
That's the pattern we follow.
985b63b3ee (commitcomment-63973544)
This commit is contained in:
parent
19793f333b
commit
92f179075f
|
@ -212,10 +212,12 @@ struct
|
||||||
HB_FUNCOBJ (hb_bool);
|
HB_FUNCOBJ (hb_bool);
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline T hb_coerce (const T v) { return v; }
|
static inline
|
||||||
|
T hb_coerce (const T v) { return v; }
|
||||||
template <typename T, typename V,
|
template <typename T, typename V,
|
||||||
hb_enable_if (!hb_is_same (hb_decay<T>, hb_decay<V>) && std::is_pointer<V>::value)>
|
hb_enable_if (!hb_is_same (hb_decay<T>, hb_decay<V>) && std::is_pointer<V>::value)>
|
||||||
inline T hb_coerce (const V v) { return *v; }
|
static inline
|
||||||
|
T hb_coerce (const V v) { return *v; }
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue