I came across this operator overload during my use of the sqlapi which does exactly what i need, but i'm not sure how it works.
sqlapi.h
class SQLAPI_API SAString
{
public:
//stuff
//! Return pointer to const string
operator const SAChar *() const;
//stuff
}
The only way that i know how to use it is because of the intellisense which doesn't look pretty:
char* chPointer = SAStringObj.operator const SAChar*();
Questions:
Is there a better looking way to call this overloaded operator?
Can someone dissect what this function header tells us about the function?
"*operator const SAChar () const;"