Opened 10 years ago

Last modified 6 years ago

#7624 closed Bugs

Deduction failure — at Initial Version

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

Description

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 (0)

Note: See TracTickets for help on using tickets.