Why am i not able to get access to protected members of myclass when i am using auto_ptr ?
auto_ptr<myclass> aptr_myclass( new myclass );
aptr_peercfg->name=func(_name);
aptr_peercfg->lastname=func(_lastname);
class myclass{
protected:
std::string name;
std::string lastname;
}