Skip to content

Commit ef4626b

Browse files
committed
Forward declare std::align_val_t
1 parent bdad103 commit ef4626b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/boost/container/detail/std_fwd.hpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
// Standard predeclarations
2424
//////////////////////////////////////////////////////////////////////////////
2525

26+
#include <cstddef>
27+
2628
#include <boost/move/detail/std_ns_begin.hpp>
2729
BOOST_MOVE_STD_NS_BEG
2830

@@ -59,4 +61,15 @@ struct pointer_traits;
5961
BOOST_MOVE_STD_NS_END
6062
#include <boost/move/detail/std_ns_end.hpp>
6163

64+
#if defined(__cpp_aligned_new)
65+
66+
//align_val_t is not usually in an inline namespace
67+
namespace std {
68+
69+
enum class align_val_t : std::size_t;
70+
71+
} //namespace std
72+
73+
#endif
74+
6275
#endif //#ifndef BOOST_CONTAINER_DETAIL_STD_FWD_HPP

0 commit comments

Comments
 (0)