Boost logo

Boost :

From: Andrei Alexandrescu (See Website For Email) (SeeWebsiteForEmail_at_[hidden])
Date: 2005-05-13 13:57:05

Martin wrote:
> Wouldn't the flex_string be even more flexible if it accepted ranges in
> constructor, assignment etc.
> (same for fixed_string, const_string of course)
> Then you could easily switch between different string types without the .c_str
> ()
> template <class RangeT>
> flex_string(const RangeT& input, const A& a = A())
> : Storage(a)
> {
> assign(begin(input), end(input));
> }

That would take it away from std::basic_string, but I think it's an
standard-allowed extension.


Boost list run by bdawes at, gregod at, cpdaniel at, john at