[Boost-bugs] [Boost C++ Libraries] #7421: previous way of coupling lexical_cast with std::transform is not working

Subject: [Boost-bugs] [Boost C++ Libraries] #7421: previous way of coupling lexical_cast with std::transform is not working
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-25 13:48:35


#7421: previous way of coupling lexical_cast with std::transform is not working
---------------------------------+------------------------------------------
 Reporter: tokiloki7@… | Owner: apolukhin
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
  Version: Boost 1.52.0 | Severity: Regression
 Keywords: |
---------------------------------+------------------------------------------
 After change

 SVN changelist 80291 (git commit 5ce9c1e41909537371a526bd2e951ff1466eeb9a)

 coupling lexical_cast with std::transform in the way

 std::transform(vector.begin(), vector.end(), str_list.begin(),
 boost::lexical_cast<string, double>);

 is not working because lexical_cast is overloaded. Compilation error is

 base_helper.cpp:25:5: error: no matching function for call to 'transform'
     std::transform(vector.begin(), vector.end(), str_list.begin(),
 boost::lexical_cast<string, double>);
     ^~~~~~~~~~~~~~
 /usr/lib/gcc/i686-redhat-
 linux/4.7.0/include/c++/4.7.0/bits/stl_algo.h:4940:5: note: candidate
 template ignored: couldn't infer template argument '_UnaryOperation'
     transform(_InputIterator __first, _InputIterator __last,
     ^
 /usr/lib/gcc/i686-redhat-
 linux/4.7.0/include/c++/4.7.0/bits/stl_algo.h:4977:5: note: candidate
 function template not viable: requires 5 arguments, but 4 were provided
     transform(_InputIterator1 __first1, _InputIterator1 __last1,

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7421>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC