-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a custom vector-like template class for scalar types which compresses the contents similar to the infamous vector<bool> template. If for example all stored values are in the range from 0 to 1023 then only 10 bits will be used to store each value. If you insert the value 1024 to the sequence the bitcount will be increased to 11 and the whole sequence get rewritten. Now I want to use boost::iterator to create a "random access traversal iterator". I think I have to provide a custom Difference parameter, because std::ptrdiff_t will not work (right?). I have simply no idea how to do that. Any comments are welcome. Thank you, Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFNLIUdnooMonJSYkRAi3dAJ91CwtdgBRdjDnt0gFKxvh0Hq7WVwCfUST/ kpFy9EA5MGZvU1cF7RKnjZw= =c53t -----END PGP SIGNATURE-----