Boost logo

Boost :

Subject: Re: [boost] make_shared_array
From: Peter Dimov (lists_at_[hidden])
Date: 2012-11-02 09:55:51

John Maddock wrote:
> >> What's the use case for default/zero initialized arrays of builtin
> >> types though?
> >
> > Do you really never initialize your arrays?
> Isn't this a case of "it depends"? Sometimes it's completely wasted
> cycles, sometimes it's essential...

It is. Olaf is arguing that there is never a need to initialize an array
when the elements are of a built-in type such as double or T*.

Boost list run by bdawes at, gregod at, cpdaniel at, john at