Boost logo

Boost :

Subject: Re: [boost] Old style casts and Boost style guidelines
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-09-13 19:19:45


Jon Biggar:

>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 )... :-/


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