Boost logo

Boost :

From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2019-12-03 02:46:50


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).


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk