mirror of https://github.com/AxioDL/metaforce.git
IVParamObj: Make default constructor of CVParamTransfer constexpr
std::shared_ptr's default constructor is constexpr, so we can apply it to CVParamTransfer to allow using it within constexpr contexts, granting more flexibility to the type.
This commit is contained in:
parent
cdf6361d6c
commit
c17b268c57
|
@ -24,7 +24,7 @@ class CVParamTransfer {
|
||||||
std::shared_ptr<IVParamObj> m_ref;
|
std::shared_ptr<IVParamObj> m_ref;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CVParamTransfer() noexcept = default;
|
constexpr CVParamTransfer() noexcept = default;
|
||||||
CVParamTransfer(IVParamObj* obj) : m_ref(obj) {}
|
CVParamTransfer(IVParamObj* obj) : m_ref(obj) {}
|
||||||
|
|
||||||
CVParamTransfer(const CVParamTransfer& other) noexcept = default;
|
CVParamTransfer(const CVParamTransfer& other) noexcept = default;
|
||||||
|
|
Loading…
Reference in New Issue