Boost logo

Boost :

From: Alexey Nikitin (reductor_at_[hidden])
Date: 2003-12-08 07:02:14


"Robert Ramey" <ramey_at_[hidden]> ???????/???????? ? ???????? ?????????: news:01C3BB60.F5C1A8F0_at_226-146.adsl2.netlojix.net...
> Alexey Nikitin wrote:
>
> >We have template class
>
> >template <class T>
> >class A
> >{
> ..
> V};
>
> Vand macros BOOST_CLASS_TRACKING not working for it. Compiler VC7.1.
> VIs there way to turn off tracking for teamplate classes?
>
> May I conclude that it works for non-template classes?
Yes.

> does the test program test_tracking compile build?
Yes.

>
> assuming the answer to the above questions is yes
>
> How does the failure manifest itself, compile, link, run, ?
Compile failure

>
> I would ask if the target compiler supports partial template specialization.
Yes, VC7.1 support partial template specialization but I am not understand how it to apply in this case.

#include <boost/serialization/tracking.hpp>

template<class T>
struct A
{
  template<class Archive>
  void serialize(Archive& ar, const unsigned long file_version)
  {
    ar & m_;
  }
  T m_;
};

BOOST_CLASS_TRACKING(A, boost::serialization::track_never)
                  //^^^
                  //It is not compiled.
                  //What I must write here?

Regards,
Alexey



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