|
Boost : |
From: Daniel James (daniel_at_[hidden])
Date: 2004-09-03 06:02:24
Peder Holt wrote:
> Basically the same argument that Daniel had. Probably cheaper to build
> than a vector, but since the lookup times are greater (at least for
> the latter elements in the sequence) you will probably not gain much
> anyway.
That wasn't actually my argument. The main advantage that I saw was
replacing:
template <typename Vector, typename T> struct encode;
with:
template <typename T> struct encode;
The possible advantage is that compilers can reuse more instantiations
of encode. It might also simplify this heavily specialised template.
Unfortunately, this is all speculation. I haven't done anything to back
it up. Since I can't use the more recent versions of Visual C++, I can't
even test on that compiler.
Daniel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk