Cpp-Primer code example