3 Dec
2019
3 Dec
'19
2:46 a.m.
I wonder if it is possible to implement op+ such that if one writes: x = a+b; the return value of a+b gets converted to the type of x. The motivation is that, as a user, I've determined a fixed size limit for x, and therefore the library should use that, and if it is exceeded at run-time, it makes sense for the behavior to be the same as when any other fixed_string capacity is exceeded (e.g. boost::throw_exception).