Opened 14 years ago

Closed 12 years ago

#2101 closed Bugs (wontfix)

variant fails to compile with -fno-exceptions

Reported by: brbarret@… Owned by: ebf
Milestone: Boost 1.36.0 Component: variant
Version: Boost 1.35.0 Severity: Problem
Keywords: Cc:

Description

The variant component fails to compile with GCC when -fno-exceptions is specified. The attached patch allows the libraries / tests shipped with boost 1.35.0 to compile. There didn't seem to be a better option to make g++ happy than to just #ifndef out the catch(...) block, as it would otherwise complain about the throw in the block.

Attachments (1)

boost_variant_no_exceptions.diff (1.2 KB ) - added by anonymous 14 years ago.

Download all attachments as: .zip

Change History (2)

by anonymous, 14 years ago

comment:1 by Noel Belcourt, 12 years ago

Resolution: wontfix
Status: newclosed

The variant library can not be built with exceptions disabled. This is not a defect.

Note: See TracTickets for help on using tickets.