This is another beginner question. I am having problems debugging someWhen you see "discards qualifiers", more often than not, it means that a
code I am getting the error:
vertex.C: In member function Œvoid vertex::set_chain_h(const
std::auto_ptr<boost::shared_ptr<chain&)¹:
vertex.C:25: error: passing Œconst
std::auto_ptr<boost::shared_ptr<chain¹ as Œthis¹ argument of
Œstd::auto_ptr<_Tp>::operator std::auto_ptr_ref<_Tp1>() [w
ith _Tp1 = boost::shared_ptr<chain>, _Tp = boost::shared_ptr<chain>]¹
discards qualifiers
const object is begin asked to do something that only non-const objects
can do. I.E., the operation discards the const qualifier.