Boost C++ Libraries: Ticket #11718: No debug output when karma.hpp is included before qi.hpp https://svn.boost.org/trac10/ticket/11718 <p> In case karma.hpp is included macro karma\nonterminal\debug_handler.hpp::BOOST_SPIRIT_DEBUG_NODE(...) is defined. </p> <p> In case qi.hpp is included macro qi\nonterminal\debug_handler.hpp::BOOST_SPIRIT_DEBUG_NODE(...) is defined. </p> <p> both macros are secured by !defined(BOOST_SPIRIT_DEBUG_NODE). Therefore macro is defined only once which is fine. </p> <p> In case BOOST_SPIRIT_DEBUG is defined expectation is that both macro implementations define equal code. But this is not the case: </p> <ul><li>If karma.hpp is included before qi.hpp resulting code is: #define BOOST_SPIRIT_DEBUG_NODE(r) r.name(#r); </li></ul><ul><li>If qi.hpp is included before karma.hpp resulting code is: #define BOOST_SPIRIT_DEBUG_NODE(r) r.name(#r); debug(r) </li></ul><p> Therefore debug output is only available when header files are included in the right order. A simple macro extension should solve the issue. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11718 Trac 1.4.3 anonymous Sun, 11 Oct 2015 06:28:30 GMT attachment set https://svn.boost.org/trac10/ticket/11718 https://svn.boost.org/trac10/ticket/11718 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">debug_handler.hpp.patch</span> </li> </ul> Ticket anonymous Fri, 17 Jun 2016 10:18:24 GMT <link>https://svn.boost.org/trac10/ticket/11718#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11718#comment:1</guid> <description> <p> Boost 1.60 has this issue also. </p> </description> <category>Ticket</category> </item> </channel> </rss>