Boost C++ Libraries: Ticket #2047: [preprocessor] Support for enumerating through empty sequences https://svn.boost.org/trac10/ticket/2047 <p> Currently it is not easy to enumerate through a preprocessor sequence that may be empty. Currently, attempting to use BOOST_PP_SEQ_ENUM on an empty sequence (BOOST_PP_SEQ_NIL, for example) results in a compilation error saying that BOOST_PP_SEQ_ENUM_0 is not defined. </p> <p> Support for empty sequences is very useful, for example, when one wants to expand a sequence into function call arguments with possibility to call the function with no arguments. </p> <p> It seems, it is trivial to support this feature by adding "#define BOOST_PP_SEQ_ENUM_0" in "boost/preprocessor/seq/enum.hpp". </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2047 Trac 1.4.3 Marshall Clow Tue, 09 Sep 2008 19:01:13 GMT component, milestone changed; owner set https://svn.boost.org/trac10/ticket/2047#comment:1 https://svn.boost.org/trac10/ticket/2047#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">No-Maintainer</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">preprocessor</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket Steven Watanabe Sun, 24 May 2009 23:22:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2047#comment:2 https://svn.boost.org/trac10/ticket/2047#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">invalid</span> </li> </ul> <p> There is no such thing as an empty seq. See <a href="http://www.boost.org/libs/preprocessor/doc/data/sequences.html">http://www.boost.org/libs/preprocessor/doc/data/sequences.html</a> and <a href="http://www.boost.org/libs/preprocessor/doc/ref/seq_nil.html">http://www.boost.org/libs/preprocessor/doc/ref/seq_nil.html</a> </p> Ticket