5 ms·
throw new BathwaterException(new Baby()) ?
by EponymousCoward 15y ago
throw new BathwaterException(new Baby()) ?
- jcarreiro 15y agoNo no no. Always throw by value, and catch by reference. Like this: throw BathwaterException(Baby()); Wait, we are talking about C++ programming, right? ;)