Opened 9 years ago

Closed 5 years ago

#9924 closed Bugs (wontfix)

"debug" can not be used as rule name

Reported by: barade.barade@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

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:

/ Utility macro for easy enabling of rule and grammar debugging #if !defined(BOOST_SPIRIT_DEBUG_NODE)

#if defined(BOOST_SPIRIT_DEBUG)
defined(BOOST_SPIRIT_QI_DEBUG)

#define BOOST_SPIRIT_DEBUG_NODE(r) r.name(#r); debug(r)

#else

defined in "debug_handler.hpp" Of course spirit's debugging was enabled.

Change History (2)

comment:1 by Nikita Kniazev <nok.raven@…>, 5 years ago

I would consider this as wontfix, because:

  • It is not a huge problem for you not to use that name
  • Users may call debug on rules in their code
  • BOOST_SPIRIT_DEBUG_NODE without ADL will be unnecessary complexity

comment:2 by Joel de Guzman, 5 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.