Opened 11 years ago
Last modified 10 years ago
#5591 new Bugs
Inherited attributes and copy() function
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | To Be Determined | Component: | spirit |
Version: | Boost 1.46.1 | Severity: | Problem |
Keywords: | Cc: |
Description
rule::copy() and rule::alias() functions doesn't work when used on rules with inherited attributes.
using namespace boost::spirit::qi;
typedef std::string::iterator iter;
rule<iter, int()> a; rule<iter, int()> a_cp; a_cp = a; compiles a_cp = a.copy(); compiles a_cp = a.alias(); compiles
rule<iter, int(int)> b; rule<iter, int(int)> b_cp; b_cp = b; compiles b_cp = b.copy(); fails to compile b_cp = b.alias(); fails to compile
Attachments (1)
Note:
See TracTickets
for help on using tickets.
Has it been attempted to address this issue? It seems rather fundamental.