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

shiboken fails with c static arrays inside struct

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.15.2
    • Shiboken
    • None
    • All

    Description

      im creating this bug report as i've been told on the irc channel.

       

      im exposing c++ class that wraps Intel's Decimal c library

      The library makes use of c static arrays defined in structs as its internal data

      Shiboken fails with simple struct:

      typedef unsigned long long BID_UINT64;
      struct __attribute__((aligned(16))) BID_UINT128
      {
          BID_UINT64 w[2];
      };
      

       

      and im getting error:

      no matching function for call to 'copyToPython(SbkArrayConverter*, long long unsigned int [2])' || pyOut =Shiboken::Conversions::copyToPython(Shiboken::Conversions::ArrayTypeConverter<unsigned long long>(1), &cppSelf->w);

       

      the files that i attached are stripped down to minimize text size - decimal class is fairly long...

      Attachments

        1. typesystem.xml
          0.7 kB
        2. decimal.h
          2 kB
        3. decimal.cpp
          0.4 kB
        4. compiler_log.txt
          3 kB

        Issue Links

          Activity

            People

              kleint Friedemann Kleint
              meomic Michal M
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: