Skip to content

Commit

Permalink
Prefer using C header (#8113)
Browse files Browse the repository at this point in the history
Use stddef.h instead of cstddef for ptrdiff_t
  • Loading branch information
z3moon authored Sep 10, 2024
1 parent e9e7abe commit 5974065
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/utils/include/utils/memalign.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef TNT_UTILS_MEMALIGN_H
#define TNT_UTILS_MEMALIGN_H

#include <cstddef>
#include <type_traits>

#include <assert.h>
Expand Down Expand Up @@ -74,8 +73,8 @@ class STLAlignedAllocator {
using const_pointer = const TYPE*;
using reference = TYPE&;
using const_reference = const TYPE&;
using size_type = std::size_t;
using difference_type = std::ptrdiff_t;
using size_type = ::size_t;
using difference_type = ::ptrdiff_t;
using propagate_on_container_move_assignment = std::true_type;
using is_always_equal = std::true_type;

Expand Down

0 comments on commit 5974065

Please sign in to comment.