Forward declare std::align_val_t

This commit is contained in:
Ion Gaztañaga
2025-10-26 21:33:07 +01:00
parent bdad103aa5
commit ef4626b531

View File

@@ -23,6 +23,8 @@
// Standard predeclarations
//////////////////////////////////////////////////////////////////////////////
#include <cstddef>
#include <boost/move/detail/std_ns_begin.hpp>
BOOST_MOVE_STD_NS_BEG
@@ -59,4 +61,15 @@ struct pointer_traits;
BOOST_MOVE_STD_NS_END
#include <boost/move/detail/std_ns_end.hpp>
#if defined(__cpp_aligned_new)
//align_val_t is not usually in an inline namespace
namespace std {
enum class align_val_t : std::size_t;
} //namespace std
#endif
#endif //#ifndef BOOST_CONTAINER_DETAIL_STD_FWD_HPP