What are the default return values for operator< and operator[] in C++ (Visual Studio 6)?
- by DustOff
I've inherited a large Visual Studio 6 C++ project that needs to be translated for VS2005. Some of the classes defined operator< and operator[], but don't specify return types in the declarations. VS6 allows this, but not VS2005.
I am aware that the C standard specifies that the default return type for normal functions is int, and I assumed VS6…