Follow Us
Contribute
  • Register

Error C2460: (identifier1) : uses (identifier2), which is being defined

0 votes

A class or structure (identifier2) is declared as a member of itself (identifier1). Recursive definitions of classes and structures are not allowed. Ex:


class C {
   C aC;    // C2460
};

requested 7 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/1kf0205c.aspx" title="http://msdn.microsoft.com/en-us/library/1kf0205c.aspx" target="_blank">Compiler Error C2460 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 7 years ago by errorbase (170,010 points)
0 votes

Write the solution section to improve the article.


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

 


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

Related errors