Hi,
Just tried to recompile a C++ that used to compile properly… here is what I get
1>C:\Panda3D\include\weakPointerTo.I(46): error #373: "PointerToBase<T>::PointerToBase(T *) [with T=NodePathComponent]" (declared at line 23 of "C:\Panda3D\include\pointerToBase.I") is inaccessible
1> WeakPointerToBase<T>((const PointerToBase<T> &)copy)
1> ^
1> detected during instantiation of "WeakPointerTo<T>::WeakPointerTo(const WeakPointerTo<T> &) [with T=NodePathComponent]" at line 35 of "C:\Panda3D\include\weakNodePath.I"
1>
1>C:\Panda3D\include\weakPointerTo.I(46): error #373: "PointerToBase<T>::~PointerToBase() [with T=NodePathComponent]" (declared at line 45 of "C:\Panda3D\include\pointerToBase.I") is inaccessible
1> WeakPointerToBase<T>((const PointerToBase<T> &)copy)
1> ^
1> detected during instantiation of "WeakPointerTo<T>::WeakPointerTo(const WeakPointerTo<T> &) [with T=NodePathComponent]" at line 35 of "C:\Panda3D\include\weakNodePath.I"
1>
1>C:\Panda3D\include\weakPointerTo.I(149): error #373: "PointerToBase<T>::PointerToBase(T *) [with T=NodePathComponent]" (declared at line 23 of "C:\Panda3D-1.7.1\include\pointerToBase.I") is inaccessible
1> ((WeakPointerTo<T> *)this)->reassign((const PointerToBase<T> &)copy);
1> ^
1> detected during instantiation of "WeakPointerTo<T> &WeakPointerTo<T>::operator=(const WeakPointerTo<T> &) [with T=NodePathComponent]" at line 67 of "C:\Panda3D-1.7.1\include\weakNodePath.I"
1>
1>C:\Panda3D\include\weakPointerTo.I(149): error #373: "PointerToBase<T>::~PointerToBase() [with T=NodePathComponent]" (declared at line 45 of "C:\Panda3D\include\pointerToBase.I") is inaccessible
1> ((WeakPointerTo<T> *)this)->reassign((const PointerToBase<T> &)copy);
Any idea of what may be happening here?
Is the weakPointer/pointertobase code full c++ standard compliant?