[Boost-bugs] [Boost C++ Libraries] #5591: Inherited attributes and copy() function

Subject: [Boost-bugs] [Boost C++ Libraries] #5591: Inherited attributes and copy() function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-03 06:00:13


#5591: Inherited attributes and copy() function
---------------------------------------------------+------------------------
 Reporter: Öyvind Strand <oyvind.strand@…> | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5591>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC