Skip to content
Snippets Groups Projects
Commit fb8cd7ac authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

constexpr LLUnit constructor

parent 3cd8e27d
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ struct LLUnit ...@@ -83,7 +83,7 @@ struct LLUnit
typedef void is_unit_t; typedef void is_unit_t;
// value initialization // 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) : mValue(value)
{} {}
...@@ -255,7 +255,7 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS> ...@@ -255,7 +255,7 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS>
typedef typename LLUnit<STORAGE_TYPE, UNITS>::storage_t storage_t; typedef typename LLUnit<STORAGE_TYPE, UNITS>::storage_t storage_t;
typedef LLUnit<STORAGE_TYPE, UNITS> base_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) : base_t(value)
{} {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment