Skip to content

Commit

Permalink
refactor: replace deprecated in c++20 std::is_pod
Browse files Browse the repository at this point in the history
 Replace std::is_pod by different type_traits
  • Loading branch information
BartoszDunajski authored and igcbot committed Dec 6, 2024
1 parent f4a6bd2 commit 511a8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IGC/AdaptorOCL/cif/cif/builtins/memory/buffer/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ CIF_DEFINE_INTERFACE_VER(Buffer, 1){
/// pointer to alignof(ElementT)
template<typename ElementT>
bool PushBackRawCopy(const ElementT &newEl, bool packed = true){
static_assert(std::is_pod<ElementT>::value, "Supporting only POD types");
static_assert(std::is_standard_layout_v<ElementT> && std::is_trivial_v<ElementT> && std::is_trivially_copyable_v<ElementT>, "Supporting only POD types");
if(packed == false){
size_t alignment = alignof(ElementT);
bool success = AlignUp(static_cast<uint32_t>(alignment));
Expand Down

0 comments on commit 511a8d1

Please sign in to comment.