Boost C++ Libraries: Ticket #7421: previous way of coupling lexical_cast with std::transform is not working https://svn.boost.org/trac10/ticket/7421 <p> After change </p> <p> SVN changelist 80291 (git commit 5ce9c1e41909537371a526bd2e951ff1466eeb9a) </p> <p> coupling lexical_cast with std::transform in the way </p> <p> std::transform(vector.begin(), vector.end(), str_list.begin(), boost::lexical_cast&lt;string, double&gt;); </p> <p> is not working because lexical_cast is overloaded. Compilation error is </p> <p> base_helper.cpp:25:5: error: no matching function for call to 'transform' </p> <blockquote> <p> std::transform(vector.begin(), vector.end(), str_list.begin(), boost::lexical_cast&lt;string, double&gt;); <sup><del></del><del></del><del></del>~ </sup></p> </blockquote> <p> /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' </p> <blockquote> <p> transform(_InputIterator <span class="underline">first, _InputIterator </span>last, <sup> </sup></p> </blockquote> <p> /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 </p> <blockquote> <p> transform(_InputIterator1 <span class="underline">first1, _InputIterator1 </span>last1, </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7421 Trac 1.4.3 Antony Polukhin Wed, 26 Sep 2012 19:57:34 GMT <link>https://svn.boost.org/trac10/ticket/7421#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7421#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80715" title="Do not overload lexical_cast&lt;To, From&gt;(const From&amp;), instead add ...">[80715]</a>) Do not overload lexical_cast&lt;To, From&gt;(const From&amp;), instead add lexical_cast&lt;To&gt;(character_type,size_type) templates (refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7421" title="#7421: Bugs: previous way of coupling lexical_cast with std::transform is not working (closed: fixed)">#7421</a>). Added tests for getting &amp;boost::lexical_cast&lt;To,from&gt; functions pointers </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Fri, 28 Sep 2012 04:55:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7421#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7421#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80731" title="Remove bad test (refs #7421)">[80731]</a>) Remove bad test (refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7421" title="#7421: Bugs: previous way of coupling lexical_cast with std::transform is not working (closed: fixed)">#7421</a>) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Fri, 28 Sep 2012 18:31:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7421#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7421#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80739" title="Tiny documentation update (refs #7421)">[80739]</a>) Tiny documentation update (refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7421" title="#7421: Bugs: previous way of coupling lexical_cast with std::transform is not working (closed: fixed)">#7421</a>) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sat, 06 Oct 2012 20:07:56 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/7421#comment:4 https://svn.boost.org/trac10/ticket/7421#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.52.0</span> </li> </ul> Ticket Antony Polukhin Sat, 16 Mar 2013 09:06:51 GMT status, version, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/7421#comment:5 https://svn.boost.org/trac10/ticket/7421#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.52.0</span> → <span class="trac-field-new">Boost 1.53.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.52.0</span> → <span class="trac-field-new">Boost 1.54.0</span> </li> </ul> <p> In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81278" title="Stream type detection metafunctions were rewritten so that now they ...">[81278]</a> this fix was somehow removed. </p> Ticket Antony Polukhin Sat, 16 Mar 2013 09:24:11 GMT <link>https://svn.boost.org/trac10/ticket/7421#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7421#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83457" title="Fix ambiguity while using lexical_cast with std::transform or other ...">[83457]</a>) Fix ambiguity while using lexical_cast with std::transform or other functions that may take a pointer to lexical_cast (refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7421" title="#7421: Bugs: previous way of coupling lexical_cast with std::transform is not working (closed: fixed)">#7421</a>) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sun, 24 Mar 2013 14:37:59 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7421#comment:7 https://svn.boost.org/trac10/ticket/7421#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83542" title="Merge from trunk: * Fixed incorrect usage of Boost.Math when it does ...">[83542]</a>) Merge from trunk: </p> <ul><li>Fixed incorrect usage of Boost.Math when it does not support long double (fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8162" title="#8162: Bugs: lexical_cast is using math::changesign with long double regardless of ... (closed: fixed)">#8162</a>) </li><li>Fixed ambiguity of boost::lexical_cast functions (fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7421" title="#7421: Bugs: previous way of coupling lexical_cast with std::transform is not working (closed: fixed)">#7421</a>) </li></ul> Ticket