Boost logo

Boost :

From: Paul Rose (prose_at_[hidden])
Date: 2007-06-08 17:14:19

>> I guess I'l finally include it, but it'd be so much nicer if we could
>> a conclusive use case. I've also thought about legacy interfaces
>> requiring raw pointers, if only we could come up with a simple
>> specific scenario on that line.


Occasionally I want this feature, but admittedly for a fairly weak

Checking for NULL:

        if(p) ...

is more convenient than checking for end:

        if(i == c.end()) ...

If most of the time I need only to check for NULL or dereference then a
pointer is more convenient. When I occasionally need to erase() then I
can use iterator_to...

Paul Rose

Boost list run by bdawes at, gregod at, cpdaniel at, john at