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

New implmentation of QVector<T>::operator== reports warnings in Visual Studio

    XMLWordPrintable

Details

    Description

      When compiling a project using QVector 5.5, we get this warning reported by the compiler:

      b:\dev\vobs_ext\libcpp\qt\5.5.0\win32\msvc10\desktop\src\corelib\tools\qvector.h(728) : voir la référence à l'instanciation de la fonction modèle 'bool std::equal<const T*,const T*>(_InIt1,_InIt1,_InIt2)' en cours de compilation
      warning C4996: 'std::_Equal1': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
      

      It's a pain because globally disabling this warning for the whole project is unsafe and there is no way to disable it only when QVector is included.

      It would be great if it could be removed.

      Attachments

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              jpo38 Jean Porcherot
              Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes