[Boost-bugs] [Boost C++ Libraries] #9803: Boost Spirit debugging complains about missing << operator if rule attributes are defined in a different namespace

Subject: [Boost-bugs] [Boost C++ Libraries] #9803: Boost Spirit debugging complains about missing << operator if rule attributes are defined in a different namespace
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-24 07:32:41


#9803: Boost Spirit debugging complains about missing << operator if rule
attributes are defined in a different namespace
------------------------------+---------------------
 Reporter: barade.barade@… | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 Assuming you have declared the attributes classes of your rules in a
 different namespace than your grammar with the rules.
 Now, when you use BOOST_SPIRIT_DEBUG_NODES compiler says that it misses
 operator<< for ostream and the attribute classes in the different
 namespace. Even if you define one in the namespace of the grammar it does
 not work.
 As the following link states it is not easy to define the operator in a
 proper way: https://stackoverflow.com/questions/5286720/how-to-define-
 streaming-operator-for-boostspiritqi-and-stdlist-container

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