Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

throw new BathwaterException(new Baby()) ?


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

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: