Boost C++ Libraries: Ticket #1099: unable to iterate through a "non-explicitly-declared" mpl::set https://svn.boost.org/trac10/ticket/1099 <p> Iteration through the elements of an explicitly declared mpl::set works as advertised. However, if the set is not explicitly declared, iteration does not compile. </p> <p> Here is a simple case: </p> <pre class="wiki">typedef set&lt;&gt; empty_set; BOOST_MPL_ASSERT_RELATION(size&lt;empty_set&gt;::value, ==, 0); typedef insert&lt;empty_set, char&gt;::type set2_t; BOOST_MPL_ASSERT_RELATION(size&lt;set2_t&gt;::value, ==, 1); //test iterating through the mpl.set: typedef begin&lt;set2_t&gt;::type set2_itr0_t; BOOST_MPL_ASSERT((is_same&lt;deref&lt;set2_itr0_t&gt;::type, char&gt;::type)); typedef next&lt;set2_itr0_t&gt;::type set2_itr1_t;//compile error at this line BOOST_MPL_ASSERT((is_same&lt;set2_itr1_t, end&lt;set2_t&gt;::type&gt;::type)); </pre><p> Both compilers I've been able to try report the error (msvc 8.0 and gcc 3.4.4). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1099 Trac 1.4.3 Peter Dimov Sat, 28 Jul 2007 01:13:30 GMT owner set https://svn.boost.org/trac10/ticket/1099#comment:1 https://svn.boost.org/trac10/ticket/1099#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Aleksey Gurtovoy</span> </li> </ul> Ticket Aleksey Gurtovoy Sat, 21 Jun 2008 03:16:01 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1099#comment:2 https://svn.boost.org/trac10/ticket/1099#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">fixed</span> </li> </ul> <p> This bug has been fixed in 1.35 release. </p> Ticket