
15 Feb
2012
15 Feb
'12
8:40 a.m.
On Wed, Feb 15, 2012 at 3:30 AM, Julien Nitard <julien.nitard@m4tp.org> wrote:
An std container of references does not compile, a std container of pointers does. In code with dynamic polymorphic type systems pointers get used a lot, and often more than they should.
An std container of (boost/std)::(shared_ptr/unique_ptr) does compile and should be prefered to raw pointers.
Why? If the pointers are non-owning, shared/unique is wrong. -- Olaf