Style tweak
This commit is contained in:
parent
e5852f6822
commit
46b167b851
|
@ -84,9 +84,11 @@ private:
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T> using SafePtr =
|
template<typename T, typename U>
|
||||||
RefPtr<T, typename std::conditional<std::is_const<T>::value,
|
using PropagateConst = typename std::conditional<std::is_const<T>::value, const U, U>::type;
|
||||||
const SafeCountable, SafeCountable>::type>;
|
|
||||||
|
template<typename T>
|
||||||
|
using SafePtr = RefPtr<T, PropagateConst<T, SafeCountable>>;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user