Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70039 - trunk/boost/range/adaptor
From: neil_at_[hidden]
Date: 2011-03-16 19:41:14


Author: neilgroves
Date: 2011-03-16 19:41:12 EDT (Wed, 16 Mar 2011)
New Revision: 70039
URL: http://svn.boost.org/trac/boost/changeset/70039

Log:
[range] - Qualify the lookup of the make_transform_iterator function to protect against ADL. This was reported as part of Trac issue 5061.
Text files modified:
   trunk/boost/range/adaptor/transformed.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/range/adaptor/transformed.hpp
==============================================================================
--- trunk/boost/range/adaptor/transformed.hpp (original)
+++ trunk/boost/range/adaptor/transformed.hpp 2011-03-16 19:41:12 EDT (Wed, 16 Mar 2011)
@@ -42,8 +42,8 @@
             typedef R source_range_type;
 
             transformed_range( F f, R& r )
- : base( make_transform_iterator( boost::begin(r), f ),
- make_transform_iterator( boost::end(r), f ) )
+ : base( boost::make_transform_iterator( boost::begin(r), f ),
+ boost::make_transform_iterator( boost::end(r), f ) )
 
             { }
         };


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