|
Boost : |
Subject: Re: [boost] Towards a Warning free code policy proposal
From: Dave Abrahams (dave_at_[hidden])
Date: 2010-08-29 09:21:55
On Sun, Aug 29, 2010 at 1:50 AM, Mathias Gaunard
<mathias.gaunard_at_[hidden]> wrote:
> size_t(size) instead of static_cast<size_t>(size) should work just fine.
> No need for any cast.
The problem with that is that size_t(size) *is* a dangerous c-style
cast unless size_t has a nontrivial constructor.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk