Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129912

Provide overload for std::byte for QIODevice read/write operations

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • None
    • Core: I/O
    • 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/

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            EliteScience Heiko Thiel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes