Hacker News new | ask | show | jobs
by EponymousCoward 5285 days ago
throw new BathwaterException(new Baby()) ?
1 comments

No no no. Always throw by value, and catch by reference. Like this:

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