[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #9030] dim_vector constructor for any numb
From: |
Kai Torben Ohlhus |
Subject: |
[Octave-patch-tracker] [patch #9030] dim_vector constructor for any number of dimensions |
Date: |
Thu, 11 Aug 2016 09:39:38 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 |
Follow-up Comment #3, patch #9030 (project octave):
Sorry I didn't try my 64-bit build earlier (due to vacation), but I am facing
a serious problem, if octave_idx_type is not int (in my case long int).
I totally see through your simple nice code, but now in the for-loop in line
207 of dim_vector.h produces errors like this:
CXX
libinterp/dldfcn/libinterp_dldfcn___delaunayn___la-__delaunayn__.lo
In file included from ./liboctave/array/Array.h:37:0,
from libinterp/corefcn/Cell.h:31,
from libinterp/dldfcn/__delaunayn__.cc:50:
./liboctave/array/dim-vector.h: In instantiation of
‘dim_vector::dim_vector(octave_idx_type, octave_idx_type, Ints ...) [with
Ints = {int}; octave_idx_type = long int]’:
./libinterp/octave-value/ov-typeinfo.h:203:85: required from here
./liboctave/array/dim-vector.h:207:5: error: unable to deduce
‘std::initializer_list<auto>&&’ from ‘{r, c, lengths#0}’
for (const auto l: {r, c, lengths...})
^~~
./liboctave/array/dim-vector.h:207:5: note: deduced conflicting types for
parameter ‘auto’ (‘long int’ and ‘int’)
the type of auto cannot be resolved properly. Do you know an easy fix for
this? I googled a lot, tried replacing auto by "octave_idx_type", split the
loop, const_cast<>() but nothing seems to work.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?9030>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #9030] dim_vector constructor for any number of dimensions,
Kai Torben Ohlhus <=