This question is for fun, I know that I cannot define operator_
.
However, I'd really like to "bend" this rule, having something like the following as valid (with valid being loosely defined!).
T result = somevar _ someother;
I didn't come with a possible solution, but maybe you can, possibly using some preprocessor übertricks. (Of course just #define _ SOMETHING
is quite a bit dangerous)
Any help is greatly appreciated!
Aucun commentaire:
Enregistrer un commentaire