Boost logo

Boost :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2000-02-03 23:18:23


Joseph Gottman <joegottman_at_[hidden]> wrote:
> Two comments:
>
> 1) How about making the obi_ptr pointer a reference instead?
Whenever
> there is a pointer in a class and it isn't tested for null I get very
> nervous, and it isn't very clear what should happen if a null pointer is
> passed to the constructor.
>

I agree that reference will serve better in this case.

> 2) A static utility function like make_pair would be very useful.
>

For what purpose? And it would require to define a meaningful copy semantics
for the class... BTW, I forgot to make the class noncopyable...

-Alexy


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