$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] make_shared_array
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-11-02 10:14:38
On Fri, Nov 2, 2012 at 2:55 PM, Peter Dimov <lists_at_[hidden]> wrote:
> 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*.
No, I'm not. I'm just wondering what the use case is and how often it's used.
-- Olaf