[Boost-bugs] [Boost C++ Libraries] #12094: Operator > changes attribute type

Subject: [Boost-bugs] [Boost C++ Libraries] #12094: Operator > changes attribute type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-24 07:34:12


#12094: Operator > changes attribute type
----------------------------------+---------------------
 Reporter: mikhail.strelnikov@… | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
----------------------------------+---------------------
 Following code should compile, but it does not.

 {{{
 #include <boost/spirit/home/x3.hpp>

 #include <string>

 using namespace boost::spirit::x3;

 auto r = rule<class r, std::string>{} = +char_;

 int main()
 {
     std::string input = "";

     std::string output;

     auto b = std::begin(input);
     auto e = std::end(input);

     parse(b, e, 'a' > (r | r), output);
 }

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12094>
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:19 UTC