This works in MSVC++ but not in Borland C++ Builder:
Borland wants me to writeCode://Can contain a number, string or something class DataType { public: DataType( double num); //Other constructors private: //Contains type and data }; DataType foo( ) { double bar = 1; return bar; }
return DataType(bar);
According to the ANSI/ISO standard, is this required?