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:
John Maddock
2004-09-04 10:34:49 +00:00
parent 6196a6e591
commit a396085bc0
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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.