Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8717 closed Bugs (fixed)

Please make the library work on exception-disabled environments

Reported by: Adam Romanek <romanek.adam@…> Owned by: Antony Polukhin
Milestone: Boost 1.55.0 Component: variant
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc: antoshkka@…

Description

Please make boost::variant work on exception-disabled environments.

The problem is that boost::variant uses raw 'throw' and 'try/catch' keywords which make using the library on exception-disabled environments impossible.

The attached patch for v1.53.0 switches to boost::throw_exception() and Boost's macros for try / rethrow / catch.

Attachments (1)

boost_variant.patch (5.4 KB) - added by Adam Romanek <romanek.adam@…> 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by Adam Romanek <romanek.adam@…>

Attachment: boost_variant.patch added

comment:1 Changed 4 years ago by Antony Polukhin

Cc: antoshkka@… added

comment:2 Changed 4 years ago by Antony Polukhin

Owner: changed from ebf to Antony Polukhin
Status: newassigned

comment:3 Changed 4 years ago by Antony Polukhin

(In [85081]) Make Boost.Variant work on exception-disabled environments (refs #8717)

comment:4 Changed 4 years ago by Antony Polukhin

Resolution: fixed
Status: assignedclosed

(In [85157]) Merge from trunk:

  • make the library work on exception-disabled environments (fixes #8717)
  • fix compilation of Boost.Variants move assignment for situations when one of the variant template classes has nothrow copy constructor and throwing move constructor (fixes #8772)
  • mark move constructor of variant with BOOST_NOEXCEPT_IF (refs #7911)

comment:5 Changed 4 years ago by Antony Polukhin

Milestone: To Be DeterminedBoost 1.55.0

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Antony Polukhin.
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.