Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 351 Bytes

exceptRethrowCopy.md

File metadata and controls

11 lines (6 loc) · 351 Bytes

Pattern: Rethrowing with copy

Issue: -

Description

Rethrowing an exception with throw varname; creates an unnecessary copy of varname. To rethrow the caught exception without unnecessary copying or slicing, use a bare throw;.

Further Reading