diff --git a/include/boost/scoped_array.hpp b/include/boost/scoped_array.hpp index a62ba2b..8c7fdcc 100644 --- a/include/boost/scoped_array.hpp +++ b/include/boost/scoped_array.hpp @@ -75,12 +75,12 @@ public: operator unspecified_bool_type() const // never throws { - return px == 0? 0: &this_type::get; + return ptr == 0? 0: &this_type::get; } bool operator! () const // never throws { - return px == 0; + return ptr == 0; } void swap(scoped_array & b) // never throws diff --git a/include/boost/scoped_ptr.hpp b/include/boost/scoped_ptr.hpp index 73737e9..738ad1b 100644 --- a/include/boost/scoped_ptr.hpp +++ b/include/boost/scoped_ptr.hpp @@ -91,12 +91,12 @@ public: operator unspecified_bool_type() const // never throws { - return px == 0? 0: &this_type::get; + return ptr == 0? 0: &this_type::get; } bool operator! () const // never throws { - return px == 0; + return ptr == 0; } void swap(scoped_ptr & b) // never throws