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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.5.12
    • Affects Version/s: 3.5.10
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • Sharding 2017-07-31, Sharding 2017-08-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: