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

volatile member variable breaks checks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.11.2
    • Shiboken
    • None
    • Linux/X11

    Description

      I'm trying to use shiboken2 in my project (it's ROS RViz) and I get following error when trying to wrap a class with a volatile member function:

       

      Source:

      protected:
       volatile bool shutting_down_;

       

      Generated code:

      PythonToCppFunc pythonToCpp;
       if (!_Check(pyIn) && (pythonToCpp = Shiboken::Conversions::isPythonToCppConvertible(Shiboken::Conversions::PrimitiveTypeConverter<bool volatile>(), (pyIn)))) {
         PyErr_SetString(PyExc_TypeError, "wrong type attributed to 'shutting_down_', 'bool volatile' or convertible type expected");
         return -1;
       }

       

      Error message:

      error: ‘_Check’ was not declared in this scope

       

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            strahlex Alexander Rössler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes