Boost logo

Boost Users :

From: Thomas DAVID (tdavid_at_[hidden])
Date: 2006-06-09 01:42:56


Hi all (again),
I'm able to send a valarray with the XML archive but I have a problem
with the Text archive.
I displayed the received size in valarray.hpp.

template<class Archive, class U>
void load( Archive & ar, STD::valarray<U> &t, const unsigned int
file_version )
{
  collection_size_type count;
  ar >> BOOST_SERIALIZATION_NVP(count);
  cerr << "Received size : " << count << endl;
  t.resize(count);
  if (count)
    ar >> make_array(detail::get_data(t), t.size());
}

I have a correct "512" with XML but I have "0" with Text.
But the message received is like "0 1 0
0 512 2 2 2 2 2 ...". So it seems that the message is correctly sent.
Is the valarray with text buggy or I missed something (I'm quite sure
this is the second option).

Regards,

Thomas DAVID


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net