Robust method for extracting the underlying template type

This commit is contained in:
Vinnie Falco
2013-08-15 15:45:14 -07:00
parent df154e43b1
commit 43c065c5b6
@@ -38,7 +38,10 @@ class SocketWrapper
, protected SocketWrapperBasics
{
public:
typedef typename boost::remove_reference <Object>::type ObjectType;
typedef typename boost::remove_pointer <
typename boost::remove_reference <
typename boost::remove_cv <Object>::type >::type >::type
ObjectType;
SocketWrapper (Object& object) noexcept
: m_impl (&object)