Boost logo

Boost-Commit :

From: igaztanaga_at_[hidden]
Date: 2007-10-23 13:46:36


Author: igaztanaga
Date: 2007-10-23 13:46:36 EDT (Tue, 23 Oct 2007)
New Revision: 40363
URL: http://svn.boost.org/trac/boost/changeset/40363

Log:
Temporary hack to avoid compilation errors in operator->()
Text files modified:
   trunk/boost/interprocess/mem_algo/detail/mem_algo_common.hpp | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/boost/interprocess/mem_algo/detail/mem_algo_common.hpp
==============================================================================
--- trunk/boost/interprocess/mem_algo/detail/mem_algo_common.hpp (original)
+++ trunk/boost/interprocess/mem_algo/detail/mem_algo_common.hpp 2007-10-23 13:46:36 EDT (Tue, 23 Oct 2007)
@@ -101,7 +101,10 @@
    { return next_alloc_.next_? &basic_multiallocation_iterator::unspecified_bool_type_func : 0; }
 
    pointer operator->() const
- { return &operator*(); }
+ {
+ BOOST_ASSERT(0);
+ return 0;
+ }
 
    private:
    multi_allocation_next<VoidPointer> next_alloc_;


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