Boost C++ Libraries: Ticket #9924: "debug" can not be used as rule name https://svn.boost.org/trac10/ticket/9924 <p> Using Boost Spirit Qi I've been unable to name my rule "debug". The rule was defined as attribute of a qi::grammar deriving struct. I think it has something to do with: </p> <p> <em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em></em><em>/ </em> Utility macro for easy enabling of rule and grammar debugging #if !defined(BOOST_SPIRIT_DEBUG_NODE) </p> <blockquote> <table class="wiki"> <tr>#if defined(BOOST_SPIRIT_DEBUG) <td> defined(BOOST_SPIRIT_QI_DEBUG) </td></tr></table> <blockquote> <p> #define BOOST_SPIRIT_DEBUG_NODE(r) r.name(#r); debug(r) </p> </blockquote> <p> #else </p> </blockquote> <p> defined in "debug_handler.hpp" Of course spirit's debugging was enabled. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9924 Trac 1.4.3 Nikita Kniazev <nok.raven@…> Mon, 18 Dec 2017 15:15:40 GMT <link>https://svn.boost.org/trac10/ticket/9924#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9924#comment:1</guid> <description> <p> I would consider this as wontfix, because: </p> <ul><li>It is not a huge problem for you not to use that name </li><li>Users may call <code>debug</code> on rules in their code </li><li><code>BOOST_SPIRIT_DEBUG_NODE</code> without ADL will be unnecessary complexity </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Mon, 18 Dec 2017 23:23:38 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9924#comment:2 https://svn.boost.org/trac10/ticket/9924#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> Ticket