[C++-sig] Re: Boost::Python 1.13.1 on SuSE 9.1 x86_64
David Abrahams
dave at boost-consulting.com
Wed Aug 4 23:48:42 CEST 2004
Jan Heiser <jan.heiser at raubtierbaendiger.de> writes:
> It boils down to the fact that on x86_64 unsigned and std::size_t do not
> have the same width, unsigned still has 32 bits, std::size_t has 64 bits.
>
>
> Now, my idea was to directly change the template function:
>
> boost/python/with_custodian_and_ward.hpp:79
> - template <std::size_t custodian, std::size_t ward, class BasePolicy_ =
> default_call_policies>
> + template <unsigned custodian, unsigned ward, class BasePolicy_ =
> default_call_policies>
I wouldn't want to make that change. I'd much rather use a
std::size_t for the arity variable at the line of the warning. But
either way, this warning is obviously completely bogus. A size_t can
never be greater than an unsigned int??!
My advice: turn off -Wall and/or -Werror.
--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list