Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
When template data types are nested, for example a std::vector of std::vectors of int, its declaration ends with its nested template closer.
The nested template closer depends on the standard used:
The nested template closer must be '> >', instead of just '>>'.
#include <vector> |
The nested template closer can be '>>'.
#include <vector> |
Technical note: this code is compiled successfully using the G++ 4.4.5 compiler, which is supplied with the Qt Creator 2.0.0 IDE.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.