Testing code from Koenig and Moo's book Accelerated C++