P
Philippe Guglielmetti
I just ported old (VC6) working code to VC7.1 and have trouble with
something like:
class A; // forward
typedef boost::smart_ptr<A> Aptr;
class B{
Aptr a;
virtual ~B(); // implemented after A has been defined
};
I get an "use of undefined type 'A'' in checked_delete.hpp at
template<class T> inline void checked_delete(T * x)
{
typedef char type_must_be_complete[sizeof(T)];
delete x;
}
what's wrong ? thanks!
something like:
class A; // forward
typedef boost::smart_ptr<A> Aptr;
class B{
Aptr a;
virtual ~B(); // implemented after A has been defined
};
I get an "use of undefined type 'A'' in checked_delete.hpp at
template<class T> inline void checked_delete(T * x)
{
typedef char type_must_be_complete[sizeof(T)];
delete x;
}
what's wrong ? thanks!