All Questions
Tagged with smart-pointer object-oriented
3 questions
1
vote
1
answer
4k
views
How can I copy and alter object with unique_ptr in it?
I basically have the following situation:
+------------------+
| |
| Input object |
...
5
votes
2
answers
2k
views
Factories, vectors and smart pointers - Design Question
So, my Business Code needs some Objects.
It does not know how much objects it needs and it does not know the exact types (because polymorphism is involved).
For me, that sounds for a good reason to go ...
4
votes
1
answer
2k
views
gtkmm manage/add vs smart pointers:
gtkmm provides lifetime management of widgets using
Gtk::Widget* aWidget = Gtk::manage(new Widget());
Gtk::Widget.add(*aWidget);
This delegates lifetime management of aWidget to its container ...