Boost logo

Boost Users :

Subject: Re: [Boost-users] function_base.hpp type-punned pointer warnings
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-03-10 14:00:19


Justin wrote:

> I have run my patch on MSVC (8, 9, and 10) and GCC, and I do not recall
> seeing
> warnings from MSVC. Isn't p being used to call the destructor?

The warning probably only appears when trying to call the destructor of a
built-in type. I'm not sure whether Functor can be one in this context, so a
direct replacement may be safe.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net