>Any ideas?
The string type's data() member function returns a const qualified type. Instead of operator char *, why not use
Code:
operator const char*() const;