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: Alexander Barth
Subject: [Octave-bug-tracker] [bug #47416] call of overloaded 'octave_value(Array<int>&)' is ambiguous
Date: Tue, 15 Mar 2016 10:00:13 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

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

                 Summary: call of overloaded 'octave_value(Array<int>&)' is
ambiguous
                 Project: GNU Octave
            Submitted by: abarth
            Submitted on: Tue 15 Mar 2016 10:00:12 AM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: Alexander Barth
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.1-rc1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:


In bug #46060, I have been told that the code below does not work on win32 and
win64 versions of octave 4.0.1-rc3, while it works fine under Linux.

#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(int32NDArray(data));
  // return octave_value(data); // same error
}

The produced error message is:
error: call of overloaded 'octave_value(Array<int>&)' is ambiguous

I don't see why this function call should be ambiguous and since it happens
only on Windows I suspect an issue in octave.

I don't use windows so I cannot reproduce this myself, but maybe John Donoghue
is available to provide more information if necessary.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 15 Mar 2016 10:00:12 AM GMT  Name: helloworld_con.cc  Size: 282B  
By: abarth

<http://savannah.gnu.org/bugs/download.php?file_id=36647>

    _______________________________________________________

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]