Boost logo

Boost :

Subject: Re: [boost] [General] Always treat std::strings as UTF-8
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-01-18 20:28:31


At Tue, 18 Jan 2011 14:50:51 -0600,
Christian Holmquist wrote:
>
> There are algorithms in stl that have requirements on their input (sorted,
> usually), why is this different?

The main difference is that strings tend to have static (often
immutable) content, so it makes more sense to tie their properties to
a type.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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