C ++ Iterando através de um vetor de ponteiros inteligentes

Eu tenho uma classe que tem essa função:

typedef boost::shared_ptr<PrimShapeBase> sp_PrimShapeBase; 



class Control{
     public:
         //other functions
         RenderVectors(SDL_Surface*destination, sp_PrimShapeBase);
     private:
         //other vars
          vector<sp_PrimShapeBase> LineVector;

};

//the problem of the program

void Control::RenderVectors(SDL_Surface*destination, sp_PrimShapeBase){
    vector<sp_PrimShapeBase>::iterator i;

    //iterate through the vector
    for(i = LineVector.begin(); i != LineVector.end(); i ++ ){
      //access a certain function of the class PrimShapeBase through the smart
      //pointers
      (i)->RenderShape(destination); 

    }
}

O compilador me diz que a classe boost :: shared_ptr não tem nenhum membro chamado 'RenderShape', o que eu acho bizarro, já que a classe PrimShapeBase certamente tem essa função, mas está em um arquivo de cabeçalho diferente. Qual é a causa disso?

questionAnswers(2)

yourAnswerToTheQuestion