Ignore:
Timestamp:
Nov 13, 2009, 8:05:41 PM (14 years ago)
Author:
mies
Message:

replaced deprecated hash_map, hash_set classes with boost
added unsigned serialization
fixed more warnings
included -Wall to Makefile.am

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/serialization/Data.hpp

    r6786 r6922  
    4444#include <iostream>
    4545#include <boost/cstdint.hpp>
     46#include <boost/type_traits/make_unsigned.hpp>
    4647
    4748// forward declaration
     
    119120                template<typename X>
    120121                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);
    122124                }
    123125
Note: See TracChangeset for help on using the changeset viewer.