diff --git a/src/safe_ptr.hh b/src/safe_ptr.hh index a5e11ab6..12a9b4a3 100644 --- a/src/safe_ptr.hh +++ b/src/safe_ptr.hh @@ -84,9 +84,11 @@ private: #endif }; -template using SafePtr = - RefPtr::value, - const SafeCountable, SafeCountable>::type>; +template +using PropagateConst = typename std::conditional::value, const U, U>::type; + +template +using SafePtr = RefPtr>; }