Boost logo

Boost :

Subject: Re: [boost] std::map::find() wrapper
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-05-04 13:42:11


On 4 May 2011 10:44, Denis Shevchenko <for.dshevchenko_at_[hidden]> wrote:

>
> I'm not sure what your code looks like, but IMO bare pointers are
>> perfectly fine in certain situations.
>> Like this one, where no ownership issues are present.
>>
> IMHO, if program *REQUIRES* bare pointers - this program, probably, should
> be refactored.
>

If it isn't involved with ownership, what is wrong with raw pointers? I
find it far more flexible to separate the concern of ownership from usage.

> For example, I don't use bare pointers in my code. Never (except operator
> new() result). I write system-oriented programs and libraries (network,
> protocols, database, etc.), but I never need bare pointers.
>

What you do is far less interesting to me than why you do it. Is it just
dogma, or is there some underlying reason?

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

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