3 months ago

How to add a done() macro to the Srt::() class

Posted 3 months ago by man-u-l

I recently need it to cast a Str::() result to string, I got some help and I was told to ad ->__toString() to get the desired result, that worked great, but in the video: Someone mentioned:

"First thing I did was to add a done() macro to the class to return the value e.g.


IMO it’s cleaner than using (string) or ->__toString()"

->done() looks much better and cleaner than ->__toString()

How can this be done.

Thanks in advanced!

Please sign in or create an account to participate in this conversation.