[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8386] Fixed up "find" function with templ
From: |
David Spies |
Subject: |
[Octave-patch-tracker] [patch #8386] Fixed up "find" function with templates and fourth parameter |
Date: |
Thu, 20 Mar 2014 04:08:03 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:27.0) Gecko/20100101 Firefox/27.0 |
Follow-up Comment #4, patch #8386 (project octave):
Sorry, I never finished reading your comments (or if I did I forgot). I was
too concerned with the first part to get through the rest.
If I don't include "min" myself, then I get:
corefcn/find.cc: In function 'octave_idx_type min_with_nnz(const PermMatrix&,
octave_idx_type)':
corefcn/find.cc:220:39: error: call of overloaded 'min(octave_idx_type&,
octave_idx_type&)' is ambiguous
corefcn/find.cc:220:39: note: candidates are:
../liboctave/array/chNDArray.h:108:31: note: charNDArray min(char, const
charNDArray&)
../liboctave/array/chNDArray.h:109:31: note: charNDArray min(const
charNDArray&, char)
../liboctave/array/chNDArray.h:110:31: note: charNDArray min(const
charNDArray&, const charNDArray&)
If I explicitly specify the type (ie min<octave_idx_type>(a,b)), I get:
corefcn/find.cc: In function 'octave_idx_type min_with_nnz(const Sparse<T>&,
octave_idx_type)':
corefcn/find.cc:211:31: error: expected primary-expression before '>' token
#include <algorithm> doesn't seem to fix it.
I can't find anywhere I used CamelCase (except ItType, but I don't think
you're referring to that. It's a type parameter. It acts like a type like
PermMatrix and FloatNDArray etc. which all use CamelCase as far as I can tell)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8386>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/