C++ UFCS update

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 21 03:37:10 PST 2016


Anyway, adding extension methods to C++ could be as trivial as 
the name of the first parameter being "this":

std::string reverse(const std::string& this){…}

auto s = somestring.reverse();



More information about the Digitalmars-d mailing list