I looked at what you said about the value for m_numBricks.
originally, i had numBricks like this in the header file:
static const int m_numBricks = 10;
but i changed that to a normal int and tried initialising m_numBricks in the class constructor, but then then i started getting the same error at that line in the constructor.
CBrickManager::CBrickManager(void){ m_numBricks = 10;//this is where the error occured generateBallData();}
I also changed
for(int i = 0; i = (m_numBricks - 1); i++) to
for(int i = 0; i < (m_numBricks - 1); i++)