Opened 9 years ago

Closed 9 years ago

Last modified 9 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@…> 9 years ago.

Download all attachments as: .zip

Change History (6)

by Adam Romanek <romanek.adam@…>, 9 years ago

Attachment: boost_variant.patch added

comment:1 by Antony Polukhin, 9 years ago

Cc: antoshkka@… added

comment:2 by Antony Polukhin, 9 years ago

Owner: changed from ebf to Antony Polukhin
Status: newassigned

comment:3 by Antony Polukhin, 9 years ago

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

comment:4 by Antony Polukhin, 9 years ago

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 by Antony Polukhin, 9 years ago

Milestone: To Be DeterminedBoost 1.55.0
Note: See TracTickets for help on using tickets.