mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-11-02 08:41:45 +01:00
Add sp_type_with_alignment
This commit is contained in:
@@ -39,6 +39,16 @@ template<class T> struct sp_type_identity
|
||||
typedef T type;
|
||||
};
|
||||
|
||||
// boost::type_with_alignment
|
||||
|
||||
template<std::size_t A> struct sp_type_with_alignment
|
||||
{
|
||||
struct alignas(A) type
|
||||
{
|
||||
unsigned char padding[ A ];
|
||||
};
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
} // namespace boost
|
||||
|
||||
|
||||
Reference in New Issue
Block a user