Ticket #5362 (closed Bugs: fixed)

Opened 6 years ago

Last modified 4 years ago

circular_buffer does not compile with BOOST_NO_EXCEPTIONS

Reported by: anonymous Owned by: viboes
Milestone: Boost 1.55.0 Component: circular_buffer
Version: Boost 1.46.0 Severity: Problem
Keywords: Cc:


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):


#include <stdexcept>


This issue is in all versions of boost that include circular_buffer


Change History

comment:1 Changed 6 years ago by anonymous

workaround is to manually include stdexcept every time circular_buffer.hpp is included:

#include <stdexcept> // included for circular_buffer.hpp:
#include <boost/circular_buffer.hpp>
Last edited 4 years ago by viboes (previous) (diff)

comment:2 Changed 4 years ago by viboes

  • Owner changed from jano_gaspar to viboes
  • Status changed from new to assigned

comment:3 Changed 4 years ago by viboes

Committed revision [84971].

comment:4 Changed 4 years ago by viboes

  • Milestone changed from To Be Determined to Boost 1.55.0

comment:5 Changed 4 years ago by viboes

  • Status changed from assigned to closed
  • Resolution set to fixed

Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.