Boost logo

Boost :

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

"Robert Ramey" <ramey_at_[hidden]> ???????/???????? ? ???????? ?????????:
> 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?

> does the test program test_tracking compile build?

> 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?


Boost list run by bdawes at, gregod at, cpdaniel at, john at