Follow Us
Contribute
  • Register

Error C2589: (identifier) : illegal token on right side of '::'

0 votes

If a class, structure, or union name appears to the left of the scope-resolution operator (double colons), the token on the right must be a class, structure, or union member. Otherwise, any global identifier can appear on the right.


The scope-resolution operator cannot be overloaded.


requested 3 years ago by errorbase (170,010 points)

3 Solutions

0 votes

This article is a derivative work based on http://msdn.microsoft.com/en-us/library/w8y03fbc.aspx" title="http://msdn.microsoft.com/en-us/library/w8y03fbc.aspx" target="_blank">Compiler Error C2589 which is provided by http://msdn.microsoft.com/en-us/library/60k1461a.aspx" title="http://msdn.microsoft.com/en-us/library/60k1461a.aspx" target="_blank">MSDN Community Content - Visual C++.

solved 3 years ago by errorbase (170,010 points)
0 votes

Write the solution section and give some code examples to improve the article.


solved 3 years ago by errorbase (170,010 points)
0 votes

 


solved 3 years ago by errorbase (170,010 points)

Related errors