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:
Lioncash 2019-09-30 02:54:23 -04:00
parent cdf6361d6c
commit c17b268c57
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class CVParamTransfer {
std::shared_ptr<IVParamObj> m_ref;
public:
CVParamTransfer() noexcept = default;
constexpr CVParamTransfer() noexcept = default;
CVParamTransfer(IVParamObj* obj) : m_ref(obj) {}
CVParamTransfer(const CVParamTransfer& other) noexcept = default;