Boost logo

Boost :

From: Alexey Nikitin (reductor_at_[hidden])
Date: 2004-04-13 10:01:32


#include <boost/archive/text_oarchive.hpp>
#include <boost/serialization/serialization.hpp>

using namespace boost::archive;
using namespace boost::serialization;

class A
{
  friend class boost::serialization::access;
  template<class Archive>
  void serialize(Archive& ar, const unsigned int file_version)
  {}
};

void f1(A const& a, text_oarchive& oa)
{
  oa << a;
}

void f2(A* a, text_oarchive& oa)
{
  oa << a;
}

void f3(A const* a, text_oarchive& oa)
{
  oa << a;
}

Why compiled function f1 and f2 but not f3 ?

Regards,
Alexey.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk