I am developing a class for use in under Qt that wants to have public members for converting to and from the ANSI string class. I have
#include <string>
class myClass {
...
public:
string & toString();
void fromString(string & s);
...
};
The VC7 .NET 2003 compiler says: error 2061: syntax error: identifier string
Is there something about compiling in the Qt env that makes the ANSI type, "string", inaccessible? If so, why does the compiler accept the #include? Is there a Qt type I should use instead?
K.
Bookmarks