From 46b167b851318306e0f321f0d27b7febd99dfcb3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 10 Jun 2015 22:42:07 +0100 Subject: [PATCH] Style tweak --- src/safe_ptr.hh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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>; }