Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30299

MSVC outputs warning 'Call to 'std::copy' with parameters that may be unsafe' in unordered_fast_key_table.h

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.5.12
    • 3.5.10
    • Internal Code
    • None
    • Fully Compatible
    • Sharding 2017-07-31, Sharding 2017-08-21

    Description

      The UnorderedFastKeyTable which serves as a base for StringMap internally uses a dynamically allocated array instead of taking advantage of std::vector. This in turn produces compilation warnings on MSVC because of the use of std::copy on bare pointers.

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: