N
Noah Roberts
Often I have a method which accepts a pointer to some class as an
argument. Usually that pointer is managed by the caller through
std::auto_ptr. I would assume that you could pass the auto_ptr in to
the method call and conversion would automagically take place, but this
does not happen. I end up having to explicitly call auto_ptr.get().
Is there a good way around this?
NR
argument. Usually that pointer is managed by the caller through
std::auto_ptr. I would assume that you could pass the auto_ptr in to
the method call and conversion would automagically take place, but this
does not happen. I end up having to explicitly call auto_ptr.get().
Is there a good way around this?
NR