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

Experiment with {{extern template class}}'ing common QtCore templates

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • None

      Example:

      extern template class QList<QString>; // header
      template class QList<QString>; // .cpp
      

      This will avoid instantiating QStringList in every TU.

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

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes