[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allocating N-dimensional Array in C++
From: |
Søren Hauberg |
Subject: |
Re: Allocating N-dimensional Array in C++ |
Date: |
Fri, 19 Mar 2010 14:57:45 -0700 |
tor, 18 03 2010 kl. 16:41 -0400, skrev John W. Eaton:
> Any objection to removing the
>
> dim_vector (const octave_idx_type *vec, size_t vec_size)
>
> construtor? Or is there some big advantage to having this constructor
> that outweighs the negatives of it being an unsafe constructor since
> there is no way to ensure that the length of the array pointed to by
> VEC is at least VEC_SIZE elements?
I guess having short-hand constructors for up to 7 dimensions will be
enough to cover 99.9% of all use-cases. So, I would be okay with this
constructor being removed.
Søren
- Re: Allocating N-dimensional Array in C++, (continued)
- Re: Allocating N-dimensional Array in C++, Jaroslav Hajek, 2010/03/06
- Re: Allocating N-dimensional Array in C++, Søren Hauberg, 2010/03/07
- Re: Allocating N-dimensional Array in C++, Jaroslav Hajek, 2010/03/07
- Re: Allocating N-dimensional Array in C++, Søren Hauberg, 2010/03/07
- Re: Allocating N-dimensional Array in C++, Jaroslav Hajek, 2010/03/08
- Re: Allocating N-dimensional Array in C++, Søren Hauberg, 2010/03/08
- Re: Allocating N-dimensional Array in C++, John W. Eaton, 2010/03/15
- Re: Allocating N-dimensional Array in C++, Jaroslav Hajek, 2010/03/17
- Re: Allocating N-dimensional Array in C++, John W. Eaton, 2010/03/18
- Re: Allocating N-dimensional Array in C++,
Søren Hauberg <=