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

Shiboken confused by returning arrays by reference

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: dev
    • Component/s: Shiboken

      Description

      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.

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes