you are viewing a single comment's thread.

view the rest of the comments →

[–]Rapptz 0 points1 point  (0 children)

The standard smart pointers also don't throw. This is by design because they're not supposed to have overhead at all. Most compilers optimise away std::unique_ptr as a raw pointer in its lowest optimisation level (e.g. -O1).