Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55600 - sandbox/itl/boost/itl
From: afojgo_at_[hidden]
Date: 2009-08-15 06:38:03


Author: jofaber
Date: 2009-08-15 06:38:02 EDT (Sat, 15 Aug 2009)
New Revision: 55600
URL: http://svn.boost.org/trac/boost/changeset/55600

Log:
Bugfix in infix operator + after refactoring. Stable {msvc-9.0 r+d, gcc-3.4.4}
Text files modified:
   sandbox/itl/boost/itl/map.hpp | 6 ++----
   1 files changed, 2 insertions(+), 4 deletions(-)

Modified: sandbox/itl/boost/itl/map.hpp
==============================================================================
--- sandbox/itl/boost/itl/map.hpp (original)
+++ sandbox/itl/boost/itl/map.hpp 2009-08-15 06:38:02 EDT (Sat, 15 Aug 2009)
@@ -663,7 +663,7 @@
 operator + (const typename itl::map<DomainT,CodomainT,Traits,Compare,Combine,Section,Alloc>::element_type& operand,
                            itl::map<DomainT,CodomainT,Traits,Compare,Combine,Section,Alloc> object )
 {
- return result += operand;
+ return object += operand;
 }
 
 /** Add a map \c operand to map \c object. If an element of \c operand already exists
@@ -708,9 +708,7 @@
 operator | (const typename itl::map<DomainT,CodomainT,Traits,Compare,Combine,Section,Alloc>::element_type& operand,
                            itl::map<DomainT,CodomainT,Traits,Compare,Combine,Section,Alloc> object )
 {
- typedef itl::map<DomainT,CodomainT,Traits,Compare,Combine,Section,Alloc> ObjectT;
- ObjectT result(object);
- return result |= operand;
+ return object |= operand;
 }
 
 /** Add a map \c operand to map \c object. If an element of \c operand already exists


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