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