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

Type Entry - std::byte

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.3
    • Shiboken
    • None

    Description

      Problem:

      C++17 provides a new way of storing binary data called std::byte - https://en.cppreference.com/w/cpp/types/byte

      Here is a reason to use std::byte over unsigned char - https://www.reddit.com/r/cpp_questions/comments/hlyav9/why_use_stdbyte_over_unsigned_char/

      Using shiboken to bind a function with std::byte, I get the error, even with the <extra-include/>

      skipping function 'void A::printByte(std::byte)', unmatched type 'std::byte' in parameter #1 "b": Unable to translate type "std::byte": Cannot find type entry for "std::byte".

      Solution:

      Create a type entry for std::byte

       

      Reference:

      https://codereview.qt-project.org/c/pyside/pyside-setup/+/372538 

      Attachments

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

        Activity

          People

            shpremna Shyamnath Premnadh
            shpremna Shyamnath Premnadh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes