From: Matthias Troyer (troyer_at_[hidden])
Date: 2005-11-27 16:05:22


On Nov 27, 2005, at 5:36 PM, Robert Ramey wrote:

> Matthias Troyer wrote:
>
>> ----------------------------------------------------
>> template<class Base, class T>
>> void save(boost::archive::bitwise_oarchive_adaptor<Base> &ar, const
>> std::valarray<T> & t,)
>> {
>> const unsigned int count = t.size();
>> ar << count;
>> save_array(ar, get_data(t),t.size());
>> }
>>
>> ----------------------------------------------------
>
> Hmmm - did you perchance mean to use
> "bitwise_oarchive_adaptor<Base> in the
> above ?
>

Sorry, I meant

template<class Archive, class T>
void save(Archive> &ar, const
std::valarray<T> & t,)

There is just ONE serialize function necessary to invoke either the
standard or optimized version

Matthias