[SERVER-60151] Remove application of C++20 deprecation suppressions Created: 22/Sep/21  Updated: 29/Oct/23  Resolved: 18/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Juan Gu
Resolution: Fixed Votes: 0
Labels: post-c++20
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-60173 Ban implicit capture of `this` via `[... Closed
Related
related to SERVER-77462 Complete TODO listed in SERVER-60151 In Progress
related to SERVER-77305 Complete TODO listed in SERVER-60151 Closed
related to SERVER-60173 Ban implicit capture of `this` via `[... Closed
Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Participants:

 Description   

We need to apply -Wno-deprecation when using GCC 11 in C++20 mode so we can get across the transition around explicit capture of this, per https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100493.

Once we are fully in C++20 mode, we should remove the suppression of deprecation warnings after either adding the now-required this where required, or by making the value capture lists explicit.



 Comments   
Comment by Andrew Morrow (Inactive) [ 30/Dec/21 ]

We will also be adding _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS for MSVS 2022, so we should remove that as well once we are fully in C++20 and have removed deprecated usage.

Generated at Thu Feb 08 05:49:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.