|
Boost : |
Subject: Re: [boost] Old style casts and Boost style guidelines
From: Jon Biggar (jon_at_[hidden])
Date: 2008-09-13 20:10:41
Peter Dimov wrote:
>> I wanted to get rid of all old-style casts in my application, so I
>> turned on -Wold-style-cast in gcc and found a whole bunch of old-style
>> casts in boost headers.
>
> ...
>
>> ../../../boost/detail/sp_convertible.hpp:48: warning: use of old-style
>> cast
>
> (Y*)0 is so much nicer than static_cast< Y* >( 0 )... :-/
True, but most of the stuff in boost headers is write-once.
-- Jon Biggar jon_at_[hidden] jon_at_[hidden] jonbiggar_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk