Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::aligned_storage and std::aligned_union deprecated in C++23 #519

Open
ecatmur opened this issue Aug 1, 2023 · 0 comments · May be fixed by #520
Open

std::aligned_storage and std::aligned_union deprecated in C++23 #519

ecatmur opened this issue Aug 1, 2023 · 0 comments · May be fixed by #520

Comments

@ecatmur
Copy link

ecatmur commented Aug 1, 2023

https://godbolt.org/z/Yx16avdqP

/opt/compiler-explorer/libs/boost_1_82_0/boost/hana/traits.hpp: In member function 'constexpr auto boost::hana::traits::aligned_storage_t::operator()(const Len&, const Align&) const':
/opt/compiler-explorer/libs/boost_1_82_0/boost/hana/traits.hpp:173:42: warning: 'template<long unsigned int _Len, long unsigned int _Align> struct std::aligned_storage' is deprecated [-Wdeprecated-declarations]
  173 |             using Result = typename std::aligned_storage<len, align>::type;
      |                                          ^~~~~~~~~~~~~~~
In file included from /opt/compiler-explorer/libs/boost_1_82_0/boost/hana/core/default.hpp:17,
                 from /opt/compiler-explorer/libs/boost_1_82_0/boost/hana/concept/struct.hpp:17,
                 from /opt/compiler-explorer/libs/boost_1_82_0/boost/hana/accessors.hpp:15,
                 from /opt/compiler-explorer/libs/boost_1_82_0/boost/hana.hpp:58:
/opt/compiler-explorer/gcc-trunk-20230801/include/c++/14.0.0/type_traits:2099:5: note: declared here
 2099 |     aligned_storage
      |     ^~~~~~~~~~~~~~~
/opt/compiler-explorer/libs/boost_1_82_0/boost/hana/traits.hpp: In member function 'constexpr auto boost::hana::traits::aligned_storage_t::operator()(const Len&) const':
/opt/compiler-explorer/libs/boost_1_82_0/boost/hana/traits.hpp:180:42: warning: 'template<long unsigned int _Len, long unsigned int _Align> struct std::aligned_storage' is deprecated [-Wdeprecated-declarations]
  180 |             using Result = typename std::aligned_storage<len>::type;
      |                                          ^~~~~~~~~~~~~~~
/opt/compiler-explorer/gcc-trunk-20230801/include/c++/14.0.0/type_traits:2099:5: note: declared here
 2099 |     aligned_storage
      |     ^~~~~~~~~~~~~~~
/opt/compiler-explorer/libs/boost_1_82_0/boost/hana/traits.hpp: In member function 'constexpr auto boost::hana::traits::aligned_union_t::operator()(const Len&, const T& ...) const':
/opt/compiler-explorer/libs/boost_1_82_0/boost/hana/traits.hpp:189:42: warning: 'template<long unsigned int _Len, class ... _Types> struct std::aligned_union' is deprecated [-Wdeprecated-declarations]
  189 |             using Result = typename std::aligned_union<len, typename T::type...>::type;
      |                                          ^~~~~~~~~~~~~
/opt/compiler-explorer/gcc-trunk-20230801/include/c++/14.0.0/type_traits:2144:5: note: declared here
 2144 |     aligned_union
      |     ^~~~~~~~~~~~~
ecatmur added a commit to ecatmur/hana that referenced this issue Aug 1, 2023
ecatmur added a commit to ecatmur/hana that referenced this issue Aug 1, 2023
ecatmur added a commit to ecatmur/hana that referenced this issue Aug 1, 2023
@ecatmur ecatmur linked a pull request Aug 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant