I really not mean overriding it cause I know it's not possible (unless I made my own). But I how do I do that in the way like this
strText = "bla bla";
strText.Compile(); //<--- I want this one to be implicitly call.
I know I can do that using a method like this
updateText(const std::string& text)
{
strText = text;
Compile();
}
or
std::string& updateText()
{
Compile(); //hmm not sure about this. never try
return strText;
}
But is there any other technique how can I achieve this implicitly by doing only
strText = newText; //<--automatically call the `Compile()`
??
Please let me know before I give it up to updateText()
Thanks!