Add items 41 and 42 from effective C++