Boost logo

Boost :

From: Alan Bellingham (alan_at_[hidden])
Date: 2003-02-20 13:32:07


Phil Nash:

>> Not all pointers refer to resources.
>
>Hmmm, unless you are thinking of null pointers I can't think of any pointers
>that don't refer to resources. Perhaps we have a different definition of
>resource?

Or of 'refer to resources'?

 char * ptr = new char [12]; // points to (ergo, refers to) resource
 char * ptr2 = ptr+4 ; // points _into_ resource

Alan

-- 
Alan Bellingham

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