Modify

Ticket #5362 (closed Bugs: fixed)

Opened 4 years ago

Last modified 18 months 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:

Description

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

Attachments

Change History

comment:1 Changed 4 years ago by anonymous

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

#include <stdexcept> // included for circular_buffer.hpp: https://svn.boost.org/trac/boost/ticket/5362
#include <boost/circular_buffer.hpp>
Last edited 21 months ago by viboes (previous) (diff)

comment:2 Changed 21 months ago by viboes

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

comment:3 Changed 20 months ago by viboes

Committed revision [84971].

comment:4 Changed 20 months ago by viboes

  • Milestone changed from To Be Determined to Boost 1.55.0

comment:5 Changed 18 months ago by viboes

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

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.