exlaunch icon indicating copy to clipboard operation
exlaunch copied to clipboard

`std::aligned_storage` is deprecated, causes build failure

Open OatmealDome opened this issue 1 year ago • 0 comments

Building an unmodified exlaunch fails because -Werror is set and std::aligned_storage is deprecated in C++23.

main.cpp
In file included from /__w/MultiMoon/MultiMoon/source/lib/patch/patcher_impl.hpp:5,
                 from /__w/MultiMoon/MultiMoon/source/lib/patch/stream_patcher.hpp:3,
                 from /__w/MultiMoon/MultiMoon/source/lib/patch/code_patcher.hpp:4,
                 from /__w/MultiMoon/MultiMoon/source/lib.hpp:12,
                 from /__w/MultiMoon/MultiMoon/source/program/main.cpp:1:
/__w/MultiMoon/MultiMoon/source/lib/util/typed_storage.hpp:28:23: error: 'template<long unsigned int _Len, long unsigned int _Align> struct std::aligned_storage' is deprecated [-Werror=deprecated-declarations]
   28 |         typename std::aligned_storage<Size, Align>::type _storage;
      |                       ^~~~~~~~~~~~~~~
In file included from /opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/13.1.0/concepts:44,
                 from /__w/MultiMoon/MultiMoon/source/lib/util/math/bitset.hpp:4,
                 from /__w/MultiMoon/MultiMoon/source/lib/armv8.hpp:4,
                 from /__w/MultiMoon/MultiMoon/source/lib.hpp:5:
/opt/devkitpro/devkitA64/aarch64-none-elf/include/c++/13.1.0/type_traits:2099:5: note: declared here
 2099 |     aligned_storage
      |     ^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

OatmealDome avatar Jul 19 '23 05:07 OatmealDome