diff --git a/include/boost/weak_ptr.hpp b/include/boost/weak_ptr.hpp index c96d097..170359d 100644 --- a/include/boost/weak_ptr.hpp +++ b/include/boost/weak_ptr.hpp @@ -110,14 +110,14 @@ public: typename detail::shared_ptr_traits::reference operator* () const // never throws { - T * p = get(); + element_type * p = get(); BOOST_ASSERT(p != 0); return *p; } T * operator-> () const // never throws { - T * p = get(); + element_type * p = get(); BOOST_ASSERT(p != 0); return p; }