mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 14:34:44 +02:00
Use of boost::long_long_type to avoid warnings.
This commit is contained in:
@@ -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_;
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user