
16 Dec
2009
16 Dec
'09
7:35 a.m.
It would really be nice to have type_traits for all the possible user-defined operators.
For the moment, I am working on <, <=, >, >=, ==, !=, +, -, *, /, %. The main difficulty is to treat operators that are not defined for built-in types as a specialization is to be provided in each case. For %, I have a very long list of exceptions. When you say all operators, do you mean &&, || and bitwise operators? Can you enumerate the operators you're thinking of? Frédéric