Opened 10 years ago

Last modified 6 years ago

#7624 closed Bugs

Deduction failure — at Version 1

Reported by: Dave Abrahams Owned by: Thomas Heller
Milestone: Component: phoenix
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description (last modified by Dave Abrahams)

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'); // works
    find(boost::as_literal("fox"), arg1)('x');                  // compilation error
}

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

Change History (1)

comment:1 by Dave Abrahams, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.