Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-187

Shiboken confused by returning arrays by reference

XMLWordPrintable

      Consider a method like the following, which returns an array by reference:

      class Foo

      { public: int const (&foo)[5]; }

      ;

      Shiboken correctly recognizes the method, but misses that the return type is an array, and generates code as if the return type was 'int'. It would be nice if Shiboken could wrap this as returning a list/tuple without having to write a code injection. (This is possible in this case, unlike for a return of 'int const*' because the size is known.)

      This is mainly for bookkeeping and/or if someone needs boredom relief. I'm not being affected by this at the moment and will probably fix it myself if/when I am.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            matthew.woehlke Matthew Woehlke
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes