[Boost-bugs] [Boost C++ Libraries] #7624: Deduction failure

Subject: [Boost-bugs] [Boost C++ Libraries] #7624: Deduction failure
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-02 02:00:14

#7624: Deduction failure
 Reporter: dave | Owner: theller
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
  Version: Boost Release Branch | Severity: Problem
 Keywords: |
 This program fails:
 #include <boost/phoenix.hpp>
 #include <boost/range/as_literal.hpp>

 using namespace boost::phoenix::placeholders;
 using namespace boost::phoenix;

 int main()
     find(boost::as_literal("fox"), 'x')();
 // works
     find(boost::as_literal("fox"), construct<char>(arg1))('x'); //
     find(boost::as_literal("fox"), arg1)('x');
 // compilation error

 Took hours to work out what was going on. Nature of the beast, I suppose.

Ticket URL: <https://svn.boost.org/trac/boost/ticket/7624>
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:11 UTC