solve maybe unused for c++11

This commit is contained in:
Alex Fishgait 2023-10-09 14:10:24 +02:00
parent 199422d577
commit 04a5ec12f9

View File

@ -283,7 +283,7 @@ struct NAlloc
};
NAlloc() :
alloc()
alloc(),m_alloc_size(0)
{
}
@ -293,7 +293,7 @@ struct NAlloc
pointer allocate(std::size_t n)
{
m_alloc_size = n;
return static_cast<pointer>(alloc.allocate(n)); // get memory from pool
}
void deallocate(pointer p, [[maybe_unused]] std::size_t n)
@ -314,6 +314,7 @@ struct NAlloc
}
my_allocator<char> alloc;
std::size_t m_alloc_size;
};