boostorg / fiber

userland threads
464 stars 108 forks source link

std::aligned_storage raises deprecation warning with the latest gcc 13 and C++23 (to be released in about 1 month and a half) #303

Closed Romain-Geissler-1A closed 2 months ago

Romain-Geissler-1A commented 1 year ago

Hi,

We try to compile a project which depends on boost::fiber, using a bleeding edge toolchain (ie using gcc 13 which will be released in 1 month and a half) and using C++23. In this version, libstdc++ has explicitly deprecated std::aligned_storage, as required by the standard.

I am not sure how you want to cope with this. You may:

Romain-Geissler-1A commented 1 year ago

Note: there is also boost::aligned_storage defined in boost/type_traits/aligned_storage.hpp, yet I am not sure this is actually the direction the standard wanted you to follow when deprecating the std one !

olk commented 2 months ago

Shoiuld be fixed by PR #312