
13 Aug
2011
13 Aug
'11
8:04 a.m.
In case of no-parameter functions or operators, what's wrong with:
Frankly it's easier and cleaner to just put a static assert in the function body - the effect is the same - a compiler error if the operation isn't supported - and you at least get an error message that doesn't make it look like your code is broken ;-) John.