|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71465 - sandbox/mm_ptr/boost/detail
From: phil_at_[hidden]
Date: 2011-04-24 14:01:09
Author: pbouchard
Date: 2011-04-24 14:01:08 EDT (Sun, 24 Apr 2011)
New Revision: 71465
URL: http://svn.boost.org/trac/boost/changeset/71465
Log:
* Fixed operator [] access error
Text files modified:
sandbox/mm_ptr/boost/detail/mm_ptr_base.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/mm_ptr/boost/detail/mm_ptr_base.hpp
==============================================================================
--- sandbox/mm_ptr/boost/detail/mm_ptr_base.hpp (original)
+++ sandbox/mm_ptr/boost/detail/mm_ptr_base.hpp 2011-04-24 14:01:08 EDT (Sun, 24 Apr 2011)
@@ -288,12 +288,12 @@
T & operator [] (std::size_t n)
{
- return ** (po_ + n);
+ return * (* po_ + n);
}
T const & operator [] (std::size_t n) const
{
- return ** (po_ + n);
+ return * (* po_ + n);
}
};
#endif
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