6 ms·
I believe that a similar approach can also be used in C++ with the help of ADL [1] and some template magic. Though it may only work on expressions whose concret
by ddandd 12y ago
I believe that a similar approach can also be used in C++ with the help of ADL [1] and some template magic. Though it may only work on expressions whose concrete type may be known at compile-time (which makes it pretty useless).
[1] http://en.wikipedia.org/wiki/Argument-dependent_name_lookup http://en.wikipedia.org/wiki/Argument-dependent_name_lookup