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

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

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

Leave a Reply

Your email address will not be published.