I already have this method "operator const char *() { return text; }" and it is not working. I still get the address instead of the actual text.
Any other suggestions?
I like pie too .
I already have this method "operator const char *() { return text; }" and it is not working. I still get the address instead of the actual text.
Any other suggestions?
I like pie too .
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
>and it is not working
You aren't doing something right then. But that's a moot issue anyway because using an implicit conversion overload is fraught with danger (and everyone knows that you can't argue with a statement that uses the word fraught).
>Any other suggestions?
Overload the << operator as Thantos suggested.
My best code is written with the delete key.