Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2000-02-01 01:00:40


From: Dave Abrahams <abrahams_at_[hidden]>
> ...
> // stupid, slow implementation just to keep this all in a header file
> // for real speed turn this into a static data member.
> static count*& free_list() { static count* p = 0; return p; }

Is this really so stupid and slow? The compiler/linker will have to
store the static count* as data somewhere, and the free_list() function
should get inlined.


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