Remove Boost.StaticAsser dependency

This commit is contained in:
Ion Gaztañaga committed 2024-01-02 19:46:05 +01:00
1 parent 716ec48861
commit 7c74232a40
62 files changed
+344 -348

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ class static_storage_allocator
{ return true; }
private:
BOOST_STATIC_ASSERT_MSG(!InplaceAlignment || (InplaceAlignment & (InplaceAlignment-1)) == 0, "Alignment option must be zero or power of two");
BOOST_CONTAINER_STATIC_ASSERT_MSG(!InplaceAlignment || (InplaceAlignment & (InplaceAlignment-1)) == 0, "Alignment option must be zero or power of two");
static const std::size_t final_alignment = InplaceAlignment ? InplaceAlignment : dtl::alignment_of<T>::value;
typename dtl::aligned_storage<sizeof(T)*N, final_alignment>::type storage;
};