Original Post
hi I have this A class containing vector of pointers to B class and Show method (const) being sent down, problem is I get error: invalid conversion from 'B* const* const' to 'B**' my code goes like this: thanks in advance
class B
{
public:
void foo();
void show() const;
};
class A
{
public:
void show() const;
void do_foo_stuff();
private:
vector vect;
};
void A::show() const
{
B * b;
vector iter = vect.begin();
cout<< "here are the B objects: ";
for (; iter != vect.end(); ++iter)
{
b = *iter;
b->show();
}
}