Ticket #1954: collection_traits.2.patch
File collection_traits.2.patch, 1.3 KB (added by , 14 years ago) |
---|
-
boost/boost/serialization/collection_traits.hpp
29 29 #include <boost/cstdint.hpp> 30 30 #include <boost/serialization/level.hpp> 31 31 32 #include <climits> // ULONG_MAX 33 32 34 #define BOOST_SERIALIZATION_COLLECTION_TRAITS_HELPER(T, C) \ 33 35 template<> \ 34 36 struct implementation_level< C < T > > { \ … … 50 52 // i.e. that its not a synonym for (unsigned) long 51 53 // if there is no 64 bit int or if its the same as a long 52 54 // we shouldn't define separate functions for int64 data types. 53 #if defined(BOOST_NO_INT64_T) \ 54 || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1 55 # define BOOST_NO_INTRINSIC_INT64_T 55 #if defined(BOOST_NO_INT64_T) 56 #define BOOST_NO_INTRINSIC_INT64_T 57 #else 58 #if defined(ULONG_MAX) 59 #if(ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1 60 #define BOOST_NO_INTRINSIC_INT64_T 61 #endif 62 #else 63 #define BOOST_NO_INTRINSIC_INT64_T 64 #endif 56 65 #endif 57 66 58 67 #if !defined(BOOST_NO_INTRINSIC_INT64_T)