Skip to content

Commit

Permalink
chore: is_pod is deprecated replace with is_trivial (#469)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Pollind <mpollind@gmail.com>
  • Loading branch information
pollend authored Mar 7, 2023
1 parent fe8b443 commit d173c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nbl/core/containers/CMemoryPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CMemoryPool : public Uncopyable

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

0 comments on commit d173c04

Please sign in to comment.