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

Add UDL operators for QString/QByteArray to Qt::Literals::QStringLiterals namespace

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • None
    • None
    • 3
    • b4cf9c2e0 (dev), cfc189bf6 (6.5), 976e0ead4 (6.4)
    • Team A Foundation Sprint 53, Team A Foundation Sprint 54, Team A Foundation Sprint 55, Team A Foundation Sprint 56

      In scope of QTBUG-98434 _L1 literal operator for QLatin1String has been added to a new Qt::Literals::StringLiterals inline namespace, to avoid conflicts with UDL operators in the global namespace. But now we have inconsistency: other string literal operators (_qs and qba for QString and QByteArray) are in the inline QtLiterals namespace. To avoid inconsistency, add UDL operators _s and _ba for QString and QByteArray to Qt::Literals::StringLiterals, and deprecate the ones from QtLiterals namespace.

        For Gerrit Dashboard: QTBUG-101408
        # Subject Branch Project Status CR V

            sonakur Sona Kurazyan
            sonakur Sona Kurazyan
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: