Changeset 6922 for source/ariba/utility/serialization/Data.hpp
- Timestamp:
- Nov 13, 2009, 8:05:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/serialization/Data.hpp
r6786 r6922 44 44 #include <iostream> 45 45 #include <boost/cstdint.hpp> 46 #include <boost/type_traits/make_unsigned.hpp> 46 47 47 48 // forward declaration … … 119 120 template<typename X> 120 121 finline void get(X& value, size_t length = sizeof(X) * 8, if_int(X)) const { 121 _unsigned(value) = bitget<X> (bits.buffer(), index, length); 122 typedef typename boost::make_unsigned<X>::type unsigned_type; 123 _unsigned(value) = bitget<unsigned_type> (bits.buffer(), index, length); 122 124 } 123 125
Note: See TracChangeset
for help on using the changeset viewer.