Upgraded to 2005, now my code is broke. PLEASE HELP!
-
I recently upgraded from Microsoft Visual Studio 2003 to 2005, and now my project won't compile, and I have no idea how to fix it. The code that is broken: // Copy Constructor CImageManager(const &CImageManager); // Assinment Operator CImageManager operator = (const &CImageManager); The error I recieve is: 1>c:\programming\programming\programs\calypso\imagemanager.h(44) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int These constructors are declared as private in a class so that only one instance can be created. This is happening with about 12 other files/classes as well. Please let me know if anyone knows what is wrong with my syntax and why this all of a sudden changed in the new version of visual studio. Thanks in advance, Dustin
-
I recently upgraded from Microsoft Visual Studio 2003 to 2005, and now my project won't compile, and I have no idea how to fix it. The code that is broken: // Copy Constructor CImageManager(const &CImageManager); // Assinment Operator CImageManager operator = (const &CImageManager); The error I recieve is: 1>c:\programming\programming\programs\calypso\imagemanager.h(44) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int These constructors are declared as private in a class so that only one instance can be created. This is happening with about 12 other files/classes as well. Please let me know if anyone knows what is wrong with my syntax and why this all of a sudden changed in the new version of visual studio. Thanks in advance, Dustin
This worked in VS 2003? // Copy Constructor CImageManager(const &CImageManager); // Assinment Operator CImageManager operator = (const &CImageManager); I thought it should be: // Copy Constructor CImageManager(const CImageManager &); // Assinment Operator CImageManager operator = (const CImageManager &);
-
This worked in VS 2003? // Copy Constructor CImageManager(const &CImageManager); // Assinment Operator CImageManager operator = (const &CImageManager); I thought it should be: // Copy Constructor CImageManager(const CImageManager &); // Assinment Operator CImageManager operator = (const CImageManager &);
Why does Microsoft have to go and fix things so not to allow my bad coding practices. Yes, I just tried this and it fixes the problem. You are a life saver. If I ever meet you, the beer is on me.
-
Why does Microsoft have to go and fix things so not to allow my bad coding practices. Yes, I just tried this and it fixes the problem. You are a life saver. If I ever meet you, the beer is on me.
mmmm ... beer :) Cheers!