ciao.
Ho la seguente funzione :
codice:
CBoundingBoxSphere* CBoundingBoxSphere::MergeSpheres (const CBoundingBoxSphere& rkSphere0, const CBoundingBoxSphere& rkSphere1)
{
XMVECTOR kCDiff = rkSphere1.GetCenter() ;
.
.
.
CBoundingBoxSphere deriva da CBoundingBoxBase che ha una funzione:
codice:
XMVECTOR CBoundingBoxBase::GetCenter()
{
return m_fCenter;
}
mi da quest errore:
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.