Opened 7 years ago

Closed 4 years ago

#5362 closed Bugs (fixed)

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

Attachments (0)

Change History (5)

comment:1 Changed 7 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 Jan Gaspar to viboes
Status: newassigned

comment:3 Changed 4 years ago by viboes

Committed revision [84971].

comment:4 Changed 4 years ago by viboes

Milestone: To Be DeterminedBoost 1.55.0

comment:5 Changed 4 years ago by viboes

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.