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 )
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.
Note:
See TracTickets
for help on using tickets.