octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47416] call of overloaded 'octave_value(Array


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #47416] call of overloaded 'octave_value(Array<int>&)' is ambiguous
Date: Sun, 27 Mar 2016 12:28:26 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #6, bug #47416 (project octave):

When running mkoctfile helloworld_con.cc, with source file content of:


#include <octave/oct.h> 

DEFUN_DLD (helloworld_con, args, nargout, 
 "Hello World Help String") 
 { 
 int nargin = args.length (); 


Array<int> data = Array<int>(dim_vector(1,3));
 data(0) = 0; 
 data(1) = 1; 
 data(2) = 2; 


   return octave_value(data); 
 } 


output:

>> mkoctfile helloworld_con.cc
helloworld_con.cc: In function 'octave_value_list Fhelloworld_con(const
octave_value_list&, int)':
helloworld_con.cc:17:27: error: call of overloaded 'octave_value(Array<int>&)'
is ambiguous
   return octave_value(data); // same error
                           ^
helloworld_con.cc:17:27: note: candidates are:
In file included from
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/oct-obj.h:33:0,
                 from
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov-fcn.h:31,
                 from
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov-builtin.h:28,
                 from
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/defun-int.h:28,
                 from
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/defun-dld.h:30,
                 from
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/oct.h:36,
                 from helloworld_con.cc:1:
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:286:3: note:
octave_value::octave_value(const Array<std::basic_s
tring<char> >&)
   octave_value (const Array<std::string>& cellstr);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:284:3: note:
octave_value::octave_value(const Array<long long in
t>&, bool, bool)
   octave_value (const Array<octave_idx_type>& inda,
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:283:3: note:
octave_value::octave_value(const Array<octave_int<l
ong long unsigned int> >&)
   octave_value (const Array<octave_uint64>& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:282:3: note:
octave_value::octave_value(const uint64NDArray&)
   octave_value (const uint64NDArray& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:281:3: note:
octave_value::octave_value(const Array<octave_int<u
nsigned int> >&)
   octave_value (const Array<octave_uint32>& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:280:3: note:
octave_value::octave_value(const uint32NDArray&)
   octave_value (const uint32NDArray& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:279:3: note:
octave_value::octave_value(const Array<octave_int<s
hort unsigned int> >&)
   octave_value (const Array<octave_uint16>& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:278:3: note:
octave_value::octave_value(const uint16NDArray&)
   octave_value (const uint16NDArray& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:277:3: note:
octave_value::octave_value(const Array<octave_int<u
nsigned char> >&)
   octave_value (const Array<octave_uint8>& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:276:3: note:
octave_value::octave_value(const uint8NDArray&)
   octave_value (const uint8NDArray& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:275:3: note:
octave_value::octave_value(const Array<octave_int<l
ong long int> >&)
   octave_value (const Array<octave_int64>& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:274:3: note:
octave_value::octave_value(const int64NDArray&)
   octave_value (const int64NDArray& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:273:3: note:
octave_value::octave_value(const Array<octave_int<i
nt> >&)
   octave_value (const Array<octave_int32>& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:272:3: note:
octave_value::octave_value(const int32NDArray&)
   octave_value (const int32NDArray& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:271:3: note:
octave_value::octave_value(const Array<octave_int<s
hort int> >&)
   octave_value (const Array<octave_int16>& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:270:3: note:
octave_value::octave_value(const int16NDArray&)
   octave_value (const int16NDArray& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:269:3: note:
octave_value::octave_value(const Array<octave_int<s
igned char> >&)
   octave_value (const Array<octave_int8>& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:268:3: note:
octave_value::octave_value(const int8NDArray&)
   octave_value (const int8NDArray& inda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:267:3: note:
octave_value::octave_value(const octave_uint64&)
   octave_value (const octave_uint64& i);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:266:3: note:
octave_value::octave_value(const octave_uint32&)
   octave_value (const octave_uint32& i);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:265:3: note:
octave_value::octave_value(const octave_uint16&)
   octave_value (const octave_uint16& i);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:264:3: note:
octave_value::octave_value(const octave_uint8&)
   octave_value (const octave_uint8& i);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:263:3: note:
octave_value::octave_value(const octave_int64&)
   octave_value (const octave_int64& i);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:262:3: note:
octave_value::octave_value(const octave_int32&)
   octave_value (const octave_int32& i);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:261:3: note:
octave_value::octave_value(const octave_int16&)
   octave_value (const octave_int16& i);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:260:3: note:
octave_value::octave_value(const octave_int8&)
   octave_value (const octave_int8& i);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:245:3: note:
octave_value::octave_value(const Array<char>&, char
)
   octave_value (const Array<char>& chnda, char type = '\'');
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:238:3: note:
octave_value::octave_value(const Array<bool>&)
   octave_value (const Array<bool>& bnda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:227:3: note:
octave_value::octave_value(const Array<std::complex
<float> >&)
   octave_value (const Array<FloatComplex>& m);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:226:3: note:
octave_value::octave_value(const Array<std::complex
<double> >&)
   octave_value (const Array<Complex>& m);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:225:3: note:
octave_value::octave_value(const FloatComplexNDArra
y&)
   octave_value (const FloatComplexNDArray& cnda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:224:3: note:
octave_value::octave_value(const ComplexNDArray&)
   octave_value (const ComplexNDArray& cnda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:222:3: note:
octave_value::octave_value(const FloatComplexMatrix
&, const MatrixType&)
   octave_value (const FloatComplexMatrix& m,
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:221:3: note:
octave_value::octave_value(const ComplexMatrix&, co
nst MatrixType&)
   octave_value (const ComplexMatrix& m, const MatrixType& t = MatrixType
());
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:208:3: note:
octave_value::octave_value(const Array<float>&)
   octave_value (const Array<float>& m);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:207:3: note:
octave_value::octave_value(const Array<double>&)
   octave_value (const Array<double>& m);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:206:3: note:
octave_value::octave_value(const FloatNDArray&)
   octave_value (const FloatNDArray& nda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:205:3: note:
octave_value::octave_value(const NDArray&)
   octave_value (const NDArray& nda);
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:204:3: note:
octave_value::octave_value(const FloatMatrix&, cons
t MatrixType&)
   octave_value (const FloatMatrix& m, const MatrixType& t = MatrixType ());
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:203:3: note:
octave_value::octave_value(const Matrix&, const Mat
rixType&)
   octave_value (const Matrix& m, const MatrixType& t = MatrixType ());
   ^
C:\Octave\Octave-4.0.1\include\octave-4.0.1\octave\../octave/ov.h:201:3: note:
octave_value::octave_value(const Array<octave_value
>&, bool)
   octave_value (const Array<octave_value>& a, bool is_cs_list = false);
   ^
warning: mkoctfile exited with failure status
warning: called from
    mkoctfile at line 171 column 5
>>



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47416>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]