Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4669: Lots of warnings from is_unsigned.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-21 20:36:47
#4669: Lots of warnings from is_unsigned.hpp
------------------------------------------------+---------------------------
Reporter: Per Ola Ingvarsson <pi@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
Version: Boost 1.43.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------------+---------------------------
Comment (by Per Ola Ingvarsson <skrabban@â¦>):
Using gcc-4.2.1, is_unsigned_values (via the macro BOOST_STATIC_CONSTANT)
becomes:
template <class T>[[BR]]
struct is_unsigned_values[[BR]]
{[[BR]]
typedef typename remove_cv<T>::type no_cv_t;[[BR]]
enum { minus_one = (static_cast<no_cv_t>(-1)) };[[BR]]
enum { zero = (static_cast<no_cv_t>(0)) };[[BR]]
};
Using gcc-4.4.5 (debian), it expands to.
template <class T>[[BR]]
struct is_unsigned_values[[BR]]
{[[BR]]
typedef typename remove_cv<T>::type no_cv_t;[[BR]]
static const no_cv_t minus_one = (static_cast<no_cv_t>(-1));[[BR]]
static const no_cv_t zero = (static_cast<no_cv_t>(0));
};
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4669#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC