Boost C++ Libraries: Ticket #5591: Inherited attributes and copy() function https://svn.boost.org/trac10/ticket/5591 <p> rule::copy() and rule::alias() functions doesn't work when used on rules with inherited attributes. </p> <blockquote> <p> using namespace boost::spirit::qi; </p> </blockquote> <p> </p> <blockquote> <p> typedef std::string::iterator iter; </p> </blockquote> <p> </p> <blockquote> <p> rule&lt;iter, int()&gt; a; rule&lt;iter, int()&gt; a_cp; a_cp = a; <em>compiles a_cp = a.copy(); </em>compiles a_cp = a.alias(); <em>compiles </em></p> </blockquote> <p> </p> <blockquote> <p> rule&lt;iter, int(int)&gt; b; rule&lt;iter, int(int)&gt; b_cp; b_cp = b; <em>compiles b_cp = b.copy(); </em>fails to compile b_cp = b.alias(); <em>fails to compile </em></p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5591 Trac 1.4.3 Öyvind Strand <oyvind.strand@…> Fri, 03 Jun 2011 06:01:23 GMT attachment set https://svn.boost.org/trac10/ticket/5591 https://svn.boost.org/trac10/ticket/5591 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> Ticket anonymous Tue, 16 Apr 2013 06:45:24 GMT <link>https://svn.boost.org/trac10/ticket/5591#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5591#comment:1</guid> <description> <p> Has it been attempted to address this issue? It seems rather fundamental. </p> </description> <category>Ticket</category> </item> </channel> </rss>