|
Boost : |
Subject: Re: [boost] [regex] How robust arethe<boost/regex/pending/unicode_iterator.hpp> adapters?
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-07-26 04:07:22
>> Changing the underlying bytes after construction of the adapters is a
>> big no-no anyway. It's an invariant that the adapter must always
>> point between two multibyte sequences, and never be left stranded in
>> the middle of one, that could be broken if we allowed the underlying
>> sequence to change at arbitrary moments in time.
>
> I agree that it's unlikely to be needed, but a careful user could make
> such changes without ever breaking that invariant.
In which case there's no issue with the iterators.
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk