Skip to main content

All 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 | ...
pluczak's user avatar
  • 13
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 ...
lugge86's user avatar
  • 445
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 ...
Vector's user avatar
  • 3,241