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