Opened 14 years ago

Closed 14 years ago

#2322 closed Bugs (fixed)

Throw specifier missing on exception_clone

Reported by: anonymous Owned by: Emil Dotchevski
Milestone: Boost 1.37.0 Component: exception
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

I get a build error when cross compiling Boost because boost::exception_detail::exception_clone is instantiated with a template parameter of boost::exception_detail::error_info_injector. This causes it to inherit from error_info_injector, which has a throw() specifier on its destructor. Since exception_clone doesn't have an explicit destructor, GCC complains about the missing throw() specifier.

I fixed the problem with the attached patch - no idea if it's the correct solution, though.

Attachments (1)

03-exception-clone-destructor-fix.patch (510 bytes ) - added by mlcreech@… 14 years ago.

Download all attachments as: .zip

Change History (2)

by mlcreech@…, 14 years ago

comment:1 by Emil Dotchevski, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.