Project

General

Profile

Actions

Bug #3327

closed

LimitedIo slices the caught exception by copying it

Added by Davide Pesavento over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Low
Category:
Integration Tests
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

Exceptions cannot be copied through the (polymorphic) reference obtained from a catch statement, otherwise object slicing will occur, thereby losing information about the original exception object that has been thrown.

An std::exception_ptr must be used.

Actions

Also available in: Atom PDF