::: Eric Twietmeyer wrote:
::::: Hello,
[quoted text clipped - 30 lines]
:: Yes, unfortunately, I do in fact need to be able to offset in the
:: stream to locations greater than 2Gb from the current point.
Too bad.
The Band-Aid solution is to do multiple seeks, 2 GB at a time. Works for
moderate file sizes.
:: I'm also just curious how one may specialize the basic stream / buf
:: objects using different char_traits, whether that is actually doable
:: given this implementation provided with DevStudio, or whether it is
:: expected that only char_traits<char> and char_traits<wchar_t> would
:: be used, and no others.
It is possible, but hard. It will probably not help you here, anyway.
Eventually, all the seeks will probably come down to a C level fseek(),
which also takes a long parameter. The real solution is to have a 'long'
type that is actually sort-of-long, and not just a different name for 'int'.
A bit late for that now, unfortunately.
Bo Persson