Boost logo

Boost :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2004-02-23 05:59:49


On Mon, 23 Feb 2004 19:17:08 +1100, Thorsten Ottosen wrote:
> Why not change the existing constructor to
>
> template<class Container>
> tokenizer( /*const*/ Container& c,const TokenizerFunc& f = TokenizerFunc())

you mean to comment out const-ness ? This would break following sample
(an I believe quite typical) tokenizer usage:
void parse(const std::string& a)
{
  // typedef of Tokenizer, definition of separator s goes here
  Tokenizer t(a, s);
  // etc.
}

B.


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