abseil / abseil/abseil-cpp

Deprecation warnings with Visual Studio 17.3

Đang mở
#1,251 5 bình luận 0 reaction 1 người được giao Được @derekmauro nhận Xem trên GitHub
bug
Ngôn ngữ chính
C++
Star
18.1k
Fork
3.2k
Merge trung bình
20 giờ 36 phút
Pull request đã merge (30 ngày)
1

Mô tả

**Describe the bug**

Upon upgrading the Visual Studio to 17.3 I get the following warnings:

warning C4996: '_Header_ciso646': warning STL4036: is removed in C++20. You can define _SILENCE_CXX20_CISO646_REMOVED_WARNING or _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS to acknowledge that you have received this warning.

abseil-cpp/absl/meta/type_traits.h(125,50): warning C4996: 'std::aligned_storage<_Len,_Align>': warning STL4034: std::aligned_storage and std::aligned_storage_t are deprecated in C++23. Prefer alignas(T) std::byte t_buff[sizeof(T)]. You can define _SILENCE_CXX23_ALIGNED_STORAGE_DEPRECATION_WARNING or _SILENCE_ALL_CXX23_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
60>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include\type_traits(1070,1): message : see declaration of 'std::aligned_storage'

**Steps to reproduce the bug**

Build abseil with latest MSVC

**What version of Abseil are you using?**
0c92330442d6b1be934e0407115c8084250ef347

**What operating system and version are you using**

Latest Windows 10

**What compiler and version are you using?**

MSVC 14.33.31629 (Visual Studio 17.3)

**What build system are you using?**

MSBuild with CMake 3.21.4

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.