Boost logo

Boost :

From: Peter Petrov (piettropro_at_[hidden])
Date: 2002-11-25 05:06:23


>>code fragments such as:
>>line 95-96 of archive.cpp seem unacceptable to me:
>>
>>// note breaking a rule here - is this a problem on some platform
>>is.read(const_cast<char *>(s.data()), size);
>
>Although is non standard I believe that the above code will work on all
known platforms.
>It yields an improvement significant improvement in efficiency ( I believe)
without
>any known detrimental effects. Perhaps I should leave the provably
portable
>code as a comment.

Isn't the following more acceptable:

is.read(&(s[0]), size);


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