BlackMATov / meta.hpp

C++20 Dynamic Reflection Library
https://github.com/BlackMATov/meta.hpp
MIT License
134 stars 8 forks source link

Doesn't compile with C++23 in visual studio 2022 with /std:c++latest #17

Closed innochenti closed 2 years ago

innochenti commented 2 years ago

steps to repro:

  1. set C++ Language Standard to Preview - Features from the Latest C++ Working Draft (/std:c++latest) Error:

meta.hpp\meta_base\fixed_function.hpp(81,32): error C4996: 'std::aligned_storage_t': 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.

BlackMATov commented 2 years ago

Your wish has been granted :-)