mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user