If you are new to C++ templates, I would recommend the first book (although I haven't read it). The second one is for people that know how templates work and it covers similar topics as the last two parts of Vandevoorde and Josuttis book.