[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: |