Currently I have a class that looks like this in threadhelper.hpp: And later in the constructor I do this (in the cpp): After doing some researc ...
Currently I have a class that looks like this in threadhelper.hpp: And later in the constructor I do this (in the cpp): After doing some researc ...
I have a list called mesh_list; which is a boost::ptr_vector<mesh> mesh_list; now I want to delete one element from it. inside of mesh object ...
From boost::ptr_vector<T> I am trying to get T, but boost::ptr_vector<T>::value_type seems to be T*. How can I get T? Looking at the doc, ...
i am trying to make a container class for boost::ptr_vector and im just having a bit of trouble getting the iterator to work.. here is one of the mem ...
i am having trouble finding what member functions boost::ptr_vector has.. all i can find is http://www.boost.org/doc/libs/1_54_0/libs/ptr_container/d ...
i have a boost::ptr_vector that i want to keep maintained in sorted order. i am creating a bunch of Customer objects containing several simple string ...
I would like to do something like this: In that I want my objects to all be referred to by pointer so that their copy constructor is never invoked ...
When opening up the task manager to see the memory usage, it will begin with .3MB memory used. After adding 100,000 objects to the ptr_vector, there i ...
I'm using ptr_vector to store "shapes". I'm trying to fill it with derived shape classes, such as "circles", and every time I try to downcast them I g ...
I am using a boost::ptr_vector over just std::vector as it will handle the deletion of all of the pointers for me. However when I do: It complains ...
I have a collection (currently boost::ptr_vector) of objects (lets call this vec) that needs to be passed to a few functors. I want all of the functor ...
I want to randomly assign to a boost::ptr_vector. Using the normal STL vector I would do this: I am trying to do the same with boost::ptr_vector: ...
I have a boost::ptr_vector containing pointers to class "holdable". I add new items to this vector from within the holdable class like this: whe ...
I am iterating through the children of a tree node. The children are stored in a ptr_vector, and at some point throughout the iteration I fall into in ...
I am trying to use a ptr_vector to store some pointers, but I get an error as soon as my main method. Here is my code: This is the error message I ...
Setup Target Having a vector containing objects of both derived classes and then be able to access child-specific methods. Current "solution" ...
My class has a pointer vector: And in some "setup" method adds a few classes to the vector: Now clients of this class may wish to add their Clas ...
I need to have a std::vector of boost::ptr_vectors. To make their management easier, I enclosed the boost::ptr_vector in a class (Zoo) and made a std: ...
I recently found the boost ptr_vector useful to manage my collection of heap-allocated objects. The pointer collection library is very nice, but unfor ...
I have the fallowing classes: and For adding CpuCore objects into the cpuCores vector, should I add a pointer? Or I can copy the value, normaly, ...