Dobiasd / FunctionalPlus

Functional Programming Library for C++. Write concise and readable C++ code.
http://www.editgym.com/fplus-api-search/
Boost Software License 1.0
2.12k stars 169 forks source link

Doesn't compile with latest Visual Studio in C++23 mode #309

Closed thesoftwarephilosopher closed 3 months ago

thesoftwarephilosopher commented 3 months ago
Error   C4996   'std::aligned_storage<8,8>::type': 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 suppress this warning.  
Dobiasd commented 3 months ago

Hi @sdegutis, thanks for reporting! The following change should fix the problem: https://github.com/Dobiasd/FunctionalPlus/pull/310

thesoftwarephilosopher commented 3 months ago

@Dobiasd cool, do you know when this change will land in vcpkg?

Dobiasd commented 3 months ago

I just tagged a new release version. Not sure how long it usually takes to appear in vcpkg though.

thesoftwarephilosopher commented 3 months ago

Cool thanks.