Use of boost::long_long_type to avoid warnings.

This commit is contained in:
Ion Gaztañaga
2014-11-25 18:39:07 +01:00
parent 2c13d5c7d9
commit 0d86ca5d80
2 changed files with 4 additions and 3 deletions

View File

@@ -17,6 +17,7 @@
# pragma once # pragma once
#endif #endif
#include <boost/config.hpp>
#include <boost/core/no_exceptions_support.hpp> #include <boost/core/no_exceptions_support.hpp>
namespace boost { namespace boost {
@@ -31,7 +32,7 @@ union max_align
int int_; int int_;
long long_; long long_;
#ifdef BOOST_HAS_LONG_LONG #ifdef BOOST_HAS_LONG_LONG
long long long_long_; ::boost::long_long_type long_long_;
#endif #endif
float float_; float float_;
double double_; double double_;

View File

@@ -84,9 +84,9 @@ namespace detail {
#if defined(BOOST_HAS_LONG_LONG) #if defined(BOOST_HAS_LONG_LONG)
template<> template<>
struct builtin_clz_dispatch<unsigned long long> struct builtin_clz_dispatch< ::boost::ulong_long_type >
{ {
static unsigned long long call(unsigned long long n) static ::boost::ulong_long_type call(::boost::ulong_long_type n)
{ return __builtin_clzll(n); } { return __builtin_clzll(n); }
}; };
#endif #endif