[SERVER-30299] MSVC outputs warning 'Call to 'std::copy' with parameters that may be unsafe' in unordered_fast_key_table.h Created: 25/Jul/17  Updated: 30/Oct/23  Resolved: 07/Aug/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 3.5.10
Fix Version/s: 3.5.12

Type: Improvement Priority: Minor - P4
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-07-31, Sharding 2017-08-21
Participants:

 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.



 Comments   
Comment by Githook User [ 07/Aug/17 ]

Author:

{'username': 'kaloianm', 'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev'}

Message: SERVER-30299 Use the _SCL_SECURE_NO_WARNINGS flag on Windows
Branch: master
https://github.com/mongodb/mongo/commit/53bdf3fa8d2e0e3d6a795d2a13b5f013d8fdfa14

Generated at Thu Feb 08 04:23:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.