|
Boost-Commit : |
From: igaztanaga_at_[hidden]
Date: 2007-10-24 15:25:40
Author: igaztanaga
Date: 2007-10-24 15:25:40 EDT (Wed, 24 Oct 2007)
New Revision: 40430
URL: http://svn.boost.org/trac/boost/changeset/40430
Log:
Corrected operator >> bug
Text files modified:
trunk/boost/interprocess/offset_ptr.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/interprocess/offset_ptr.hpp
==============================================================================
--- trunk/boost/interprocess/offset_ptr.hpp (original)
+++ trunk/boost/interprocess/offset_ptr.hpp 2007-10-24 15:25:40 EDT (Wed, 24 Oct 2007)
@@ -292,8 +292,8 @@
//!for offset ptr
template<class E, class T, class Y>
inline std::basic_istream<E, T> & operator>>
- (std::basic_istream<E, T> & os, offset_ptr<Y> & p)
-{ Y * tmp; return os >> tmp; p = tmp; }
+ (std::basic_istream<E, T> & is, offset_ptr<Y> & p)
+{ return is >> p.get(); }
//!std::ptrdiff_t + offset_ptr
//!operation
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk