Hacker News new | ask | show | jobs
by jcarreiro 5287 days ago
No no no. Always throw by value, and catch by reference. Like this:

  throw BathwaterException(Baby());
Wait, we are talking about C++ programming, right? ;)