Boost logo

Boost-Build :

From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-09-02 04:52:43


Joao Abecasis wrote:
> if ( !fseek( file, 0L, SEEK_END ) )
> {
> size_t filesize = ftell( file );
>
> ret = allocate( filename, filesize );
>

I see two problems:
1. Loading of >100MB file into the memory is not a good idea;
2. Files can be larger than 2GB (4GB).

Best regards/Venlig hilsen,
Alexey Pakhunov.

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk