Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.3
-
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