
3 Sep
2004
3 Sep
'04
11:02 a.m.
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