ciao.
Ho la seguente funzione :
CBoundingBoxSphere deriva da CBoundingBoxBase che ha una funzione:codice:CBoundingBoxSphere* CBoundingBoxSphere::MergeSpheres (const CBoundingBoxSphere& rkSphere0, const CBoundingBoxSphere& rkSphere1) { XMVECTOR kCDiff = rkSphere1.GetCenter() ; . . .
mi da quest errore:codice:XMVECTOR CBoundingBoxBase::GetCenter() { return m_fCenter; }
Error 1 error C2662: 'PGE::CBoundingBoxBase::GetCenter' : cannot convert 'this' pointer from 'const PGE::CBoundingBoxSphere' to 'PGE::CBoundingBoxBase &' C:\PGN2010\trunk\PGEAPP\BoundingBox\BoundingBoxSph ere.cpp 27
se tolgo i const tutto funziona correttamente , solo che io vorrei iniziare ad usarli .
grazie.

Rispondi quotando