Not sure if it's because VC6 is too old or not. Have you tried with another compiler? GCC is up to 4.7.2 and is pretty current with C++11 standard.
which book is that, because I believe that statement is illegal in C++.
Thanks for the responses, the book is C++ primer 3rd edition.
Third edition is from early 1998, when the first revision of the standard was just on its way to publication. Even the coauthors of C++ can make mistakes. Get the fifth edition, from 2012.