[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?
From: |
John W. Eaton |
Subject: |
Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr? |
Date: |
Fri, 21 Jul 2017 12:54:14 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 07/21/2017 12:31 AM, Rik wrote:
There were only a few instances of static buffers which I changed to use
local variables in this cset
(http://hg.savannah.gnu.org/hgweb/octave/rev/cda0614beaec).
Thanks.
I admit to having to read about the meaning of this type of statement
that appears in your patch:
int arg_used[7] {};
and I'm still a bit confused. Is there any difference between this
syntax and
int arg_used[7] = {};
? They both initialize the elements of the array to 0, correct?
Should we have a preferred style for this?
jwe
- Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, Rik, 2017/07/18
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, John W. Eaton, 2017/07/18
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, Rik, 2017/07/19
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, John W. Eaton, 2017/07/19
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, Rik, 2017/07/20
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, John W. Eaton, 2017/07/20
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, Rik, 2017/07/21
- Message not available
- Message not available
- Message not available
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, Daniel J Sebald, 2017/07/21
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, Daniel J Sebald, 2017/07/23
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?,
John W. Eaton <=
- Re: Replace OCTAVE_LOCAL_BUFFER implementation with std::unique_ptr?, Mike Miller, 2017/07/21
- Re: initialization style, Rik, 2017/07/21