Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2022-08-15 17:20:47


Vinnie Falco wrote:
> On Mon, Aug 15, 2022 at 8:42 AM Andrey Semashev via Boost
> <boost_at_[hidden]> wrote:
> > you don't define the semantics of the operations, in particular, what
> > is the expected result
>
> Yes. Thank you for noticing this, as it is exactly what I intended. It is the caller's
> responsibility to determine if the operation makes sense. The library doesn't
> care what the outcome is, only that the syntactic requirements are met. Which
> is how I documented it :)

The semantics are pretty clear when value_type is char, which is what is required.

It's less clear what should happen when the library calls append or assign with
iterators whose value_type is char on something whose value_type is wchar_t,
which is what you seem to be doing.


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