Opened 10 years ago
Closed 6 years ago
#7624 closed Bugs (fixed)
Deduction failure
| 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.
Change History (3)
comment:1 by , 10 years ago
| Description: | modified (diff) | 
|---|
comment:2 by , 9 years ago
comment:3 by , 6 years ago
| Milestone: | To Be Determined | 
|---|---|
| Resolution: | → fixed | 
| Status: | new → closed | 
| Version: | Boost Release Branch → Boost 1.53.0 | 
It seems that fixed on 1.54 release. http://melpon.org/wandbox/permlink/YinUntrMokRpqC4Z
  Note:
 See   TracTickets
 for help on using tickets.
    
This compilation error does not appear with compilation for C++11 with clang 3.4 or gcc 4.8.2.
Under further investigation.