From fb8cd7acc8998cb138581d03e922a1d2b8d6feb9 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Tue, 26 Oct 2021 15:38:24 -0400 Subject: [PATCH] constexpr LLUnit constructor --- indra/llcommon/llunittype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llcommon/llunittype.h b/indra/llcommon/llunittype.h index 81f244e4228..c6c9cea30eb 100644 --- a/indra/llcommon/llunittype.h +++ b/indra/llcommon/llunittype.h @@ -83,7 +83,7 @@ struct LLUnit typedef void is_unit_t; // value initialization - LL_FORCE_INLINE explicit LLUnit(storage_t value = storage_t()) + LL_FORCE_INLINE explicit constexpr LLUnit(storage_t value = storage_t()) : mValue(value) {} @@ -255,7 +255,7 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS> typedef typename LLUnit<STORAGE_TYPE, UNITS>::storage_t storage_t; typedef LLUnit<STORAGE_TYPE, UNITS> base_t; - LL_FORCE_INLINE LLUnitImplicit(storage_t value = storage_t()) + LL_FORCE_INLINE constexpr LLUnitImplicit(storage_t value = storage_t()) : base_t(value) {} -- GitLab