Boost C++ Libraries: Ticket #5362: circular_buffer does not compile with BOOST_NO_EXCEPTIONS https://svn.boost.org/trac10/ticket/5362 <p> circular_buffer/base.hpp does both throw_exception(std::out_of_range("...")) and throw_exception(std::length_error("...")) but std::out_of_range and std::length_error are undefined if stdexcept is not included. </p> <p> the fix is to remove the conditional and always include stdexcept (as array.hpp and others already do): </p> <p> #if !defined(BOOST_NO_EXCEPTIONS) </p> <blockquote> <p> #include &lt;stdexcept&gt; </p> </blockquote> <p> #endif </p> <p> This issue is in all versions of boost that include circular_buffer </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5362 Trac 1.4.3 anonymous Wed, 23 Mar 2011 19:30:26 GMT <link>https://svn.boost.org/trac10/ticket/5362#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5362#comment:1</guid> <description> <p> workaround is to manually include stdexcept every time circular_buffer.hpp is included: </p> <pre class="wiki">#include &lt;stdexcept&gt; // included for circular_buffer.hpp: https://svn.boost.org/trac/boost/ticket/5362 #include &lt;boost/circular_buffer.hpp&gt; </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 09 Jun 2013 20:59:56 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/5362#comment:2 https://svn.boost.org/trac10/ticket/5362#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Jan Gaspar</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Sun, 07 Jul 2013 13:00:40 GMT <link>https://svn.boost.org/trac10/ticket/5362#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5362#comment:3</guid> <description> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/84971" title="CircularBuffer: manage with #5362, #7025, #7050.">[84971]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 07 Jul 2013 13:01:07 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/5362#comment:4 https://svn.boost.org/trac10/ticket/5362#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.55.0</span> </li> </ul> Ticket viboes Tue, 10 Sep 2013 22:14:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5362#comment:5 https://svn.boost.org/trac10/ticket/5362#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket