Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
None
-
None
Description
Since Qt 6.2 C+17 is required. Since std::byte exists as of C+17, there is a better type than
char for operations at byte level. Therefore it would be nice if the read/write methods of QIODevice and any inheriting classes could also provide an overload for std::byte (SonarLint currently criticizes reinterpret_cast<char*>).
See https://rules.sonarsource.com/cpp/tag/since-c++17/RSPEC-6022/