examples of mongo::ptr_vector

26 views
Skip to first unread message

David Mumford

unread,
May 23, 2012, 4:22:49 PM5/23/12
to mongodb-user
Hello,

I am attempting to create a container of
auto_ptr<mongo::dbclientcursor> objects in c++.
This is ofcourse an invalid operation because because of the use of
std::auto_ptr.

Is there any way to do this using the mongo::ptr_vector<...>
container?

Any help/examples are much appreciated.

Thanks,
David.

Sid

unread,
May 24, 2012, 3:57:30 PM5/24/12
to mongodb-user
I am not sure if I understand your question correctly. Can you clarify
what are you trying to achieve.
Why not just use a vector of dbclientcursor pointers ?
Reply all
Reply to author
Forward
0 new messages