Opened 11 years ago

Closed 9 years ago

#6036 closed Bugs (fixed)

incorrect rethrow in member function void mapped_file_impl::map_file(param_type& p)

Reported by: Valentin Batz <valentin.b@…> Owned by: Daniel James
Milestone: Boost 1.55.0 Component: iostreams
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

The rethrow with boost::throw_exception(e) involves 'object slicing' by making a copy of the base-class object. The original exception-information will be lost. To re-throw the current exception you have to throw without any argument.

Change History (7)

comment:1 by anonymous, 10 years ago

Bug is still present in 1.49.0.

in reply to:  1 comment:2 by anonymous, 10 years ago

Replying to anonymous:

Bug is still present in 1.49.0.

Same for 1.50.0 ;-(

in reply to:  1 comment:3 by anonymous, 10 years ago

Replying to anonymous:

Bug is still present in 1.49.0.

Same for 1.51.0

comment:4 by anonymous, 10 years ago

1.52.0 still has this bug

comment:5 by anonymous, 10 years ago

1.53.0 no changes :(

comment:6 by Daniel James, 9 years ago

Milestone: To Be DeterminedBoost 1.55.0
Owner: changed from Jonathan Turkanis to Daniel James
Status: newassigned

comment:7 by Daniel James, 9 years ago

Resolution: fixed
Status: assignedclosed

(In [84942]) Rethrow exception without slicing. Fixes #6036.

Maybe it should use catch(...), that's what iostreams uses everywhere else.

Note: See TracTickets for help on using tickets.