L
loufoque
Kirit Sælensminde wrote :
You shouldn't use boost::shared_ptr for that. Actually I still wonder
why you should ever use it.
If you really want a container of pointers (because of polymorphism),
then use boost pointer containers.
Otherwise just use a container of Edge, not of Edge*.
Prefer something like this:
boost::shared_ptr< Edge > pEdge;
You shouldn't use boost::shared_ptr for that. Actually I still wonder
why you should ever use it.
If you really want a container of pointers (because of polymorphism),
then use boost pointer containers.
Otherwise just use a container of Edge, not of Edge*.