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 #1

Updated by Davide Pesavento over 8 years ago

  • Status changed from New to Code review
  • % Done changed from 0 to 90
Actions #2

Updated by Davide Pesavento over 8 years ago

  • Priority changed from Normal to Low

Lowering priority since this doesn't break anything for now (LimitedIo::getLastException() is currently unused).

Actions #3

Updated by Davide Pesavento over 8 years ago

  • % Done changed from 90 to 100
Actions #4

Updated by Davide Pesavento over 8 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF