|
|
|
|
|
by ridiculous_fish
2760 days ago
|
|
Exceptions impose indirect costs other than just code size. For example, when std::vector reallocates, it copies instead of moves its elements, in case the move constructor throws and leaves the vector in an inconsistent state. |
|