Opened 11 years ago

Last modified 10 years ago

#5591 new Bugs

Inherited attributes and copy() function

Reported by: Öyvind Strand <oyvind.strand@…> 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)

main.cpp (460 bytes ) - added by Öyvind Strand <oyvind.strand@…> 11 years ago.

Download all attachments as: .zip

Change History (2)

by Öyvind Strand <oyvind.strand@…>, 11 years ago

Attachment: main.cpp added

comment:1 by anonymous, 10 years ago

Has it been attempted to address this issue? It seems rather fundamental.

Note: See TracTickets for help on using tickets.