C++ template – error: expected initializer before ‘<' token

pair is name of a standard class and with the using namespace std, there is a collision.

Several solutions :

  • Rename your class to something else.
  • Dont use the using statement

Leave a Comment

error code: 523