Skip to content

Commit d173c04

Browse files
authored
chore: is_pod is deprecated replace with is_trivial (#469)
Signed-off-by: Michael Pollind <mpollind@gmail.com>
1 parent fe8b443 commit d173c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/core/containers/CMemoryPool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CMemoryPool : public Uncopyable
4747

4848
using traits_t = std::allocator_traits<DataAllocator<T>>;
4949
DataAllocator<T> data_alctr;
50-
if constexpr (sizeof...(FuncArgs)!=0u || !std::is_pod_v<T>)
50+
if constexpr (sizeof...(FuncArgs)!=0u || !std::is_trivial<T>)
5151
{
5252
for (uint32_t i = 0u; i < n; ++i)
5353
traits_t::construct(data_alctr, reinterpret_cast<T*>(ptr) + i, std::forward<FuncArgs>(args)...);

0 commit comments

Comments
 (0)