forked from boostorg/iterator
Added new types boost::long_long_type and boost::ulong_long_type in boost/config.hpp and applied these types in place of "long long" throughout. As a result, almost all of boost now compiles cleanly with -ansi -pedantic with gcc. Changes tested with gcc 3.3, 2.95, VC7.1 and Intel 8.
[SVN r24899]
This commit is contained in:
@ -57,11 +57,11 @@ namespace detail
|
|||||||
|
|
||||||
# if defined(BOOST_HAS_LONG_LONG)
|
# if defined(BOOST_HAS_LONG_LONG)
|
||||||
template <>
|
template <>
|
||||||
struct is_numeric<long long>
|
struct is_numeric< ::boost::long_long_type>
|
||||||
: mpl::true_ {};
|
: mpl::true_ {};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct is_numeric<unsigned long long>
|
struct is_numeric< ::boost::ulong_long_type>
|
||||||
: mpl::true_ {};
|
: mpl::true_ {};
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
@ -270,8 +270,8 @@ int main()
|
|||||||
test_integer<long>();
|
test_integer<long>();
|
||||||
test_integer<unsigned long>();
|
test_integer<unsigned long>();
|
||||||
#if defined(BOOST_HAS_LONG_LONG)
|
#if defined(BOOST_HAS_LONG_LONG)
|
||||||
test_integer<long long>();
|
test_integer< ::boost::long_long_type>();
|
||||||
test_integer<unsigned long long>();
|
test_integer< ::boost::ulong_long_type>();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Test user-defined type.
|
// Test user-defined type.
|
||||||
|
Reference in New Issue
Block a user