Boost logo

Boost :

From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2002-08-12 01:39:12


----- Original Message -----
From: "David Abrahams" <dave_at_[hidden]>

> > That is what I mean. You have to provide the iterators, and that is
> intrusive.
>
> In what sense is that intrusive?
>
> Would you say that supplying a specialization of std::swap<> for my
> container type is intrusive on my container?

It requires knowledge of the innards of the structure. It is not quite that
same type of intrusiveness as modifying the definition of a class and thereby
causing significant rebuilds, etc.. Whether you have to add stuff inside or
outside the sequence structure itself is irrelevant in metaprogramming--because,
by definition, a different use of a metaprogramming construct requires a
rebuild.

> > easily adaptable to alternate implementations of the same thing certainly
> > doesn't encourage uniformity.
>
> I guess I just don't find uniformity to be a very compelling goal.

Fair enough. :)

Paul Mensonides


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