From 5328674c2dd6a8a3ca1f123f398eeb2eb0c8343d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 26 Jul 2002 14:18:21 +0000 Subject: [PATCH] Minor scoped_* fix (px -> ptr) (Thanks to Bertolt Mildner) [SVN r14619] --- include/boost/scoped_array.hpp | 4 ++-- include/boost/scoped_ptr.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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