Subject: [Boost-bugs] [Boost C++ Libraries] #5362: circular_buffer does not compile with BOOST_NO_EXCEPTIONS
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-23 19:05:21
#5362: circular_buffer does not compile with BOOST_NO_EXCEPTIONS
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: jano_gaspar
Type: Bugs | Status: new
Milestone: To Be Determined | Component: circular_buffer
Version: Boost 1.46.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
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.
the fix is to remove the conditional and always include stdexcept (as
array.hpp and others already do):
#if !defined(BOOST_NO_EXCEPTIONS)
#include <stdexcept>
#endif
This issue is in all versions of boost that include circular_buffer
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5362> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC