c++ - Error in vector file -
i have error in project.
error c2036: 'classname *' : unknown size c:\program files (x86)\microsoft visual studio 10.0\vc\include\vector 735
there lot of places in code std::vector<classname>
used, little confused possible reason of error.
in classes return such vectors methods like
class anotherclass { public: std::vector<classname> anotherclass::getvector() { return _myvector; } private: std::vector<classname> _myvector; };
is possible reason? or there common mistake leads error?
this matter of forgetting include header file contains declaration of classname
Comments
Post a Comment