From c17b268c579c511b1c1026188b691374c879116e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 30 Sep 2019 02:54:23 -0400 Subject: [PATCH] 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. --- Runtime/IVParamObj.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/IVParamObj.hpp b/Runtime/IVParamObj.hpp index 982dd2ae3..83d307883 100644 --- a/Runtime/IVParamObj.hpp +++ b/Runtime/IVParamObj.hpp @@ -24,7 +24,7 @@ class CVParamTransfer { std::shared_ptr m_ref; public: - CVParamTransfer() noexcept = default; + constexpr CVParamTransfer() noexcept = default; CVParamTransfer(IVParamObj* obj) : m_ref(obj) {} CVParamTransfer(const CVParamTransfer& other) noexcept = default;