P
puzzlecracker
struct A{
std:string name;
};
struct Bublic A{
};
std::vector<A*>vec;
....
std::vector<A*> const_iterator beg=vec.begin(), end=vec.end();
for(;beg!=end;beg++)
std::cout<<beg->name<<std::endl;
ok, std:string name from class A is NOT visible. WHY? what is the
solution
std:string name;
};
struct Bublic A{
};
std::vector<A*>vec;
....
std::vector<A*> const_iterator beg=vec.begin(), end=vec.end();
for(;beg!=end;beg++)
std::cout<<beg->name<<std::endl;
ok, std:string name from class A is NOT visible. WHY? what is the
solution