25 Feb
2006
25 Feb
'06
12:17 p.m.
Andy Little wrote:
An alternative suggestion is to explicitly specify what seems to be the actual behaviour of arithmetic operations on int_'s, long's etc in the documentation. The actual behaviour seems to be that these functions invariably return an integral_c. It could then also be specified that the value_type of the result is found by applying the usual promotion rules to the types of each of the (non mpl::na) arguments. That would at least tighten up any play in the current specification.
Isn't this what the docs already seem to say? http://www.boost.org/libs/mpl/doc/refmanual/plus.html