Skip to content

Commit

Permalink
Prefer using C header
Browse files Browse the repository at this point in the history
Use stddef.h instead of cstddef for ptrdiff_t
  • Loading branch information
z3moon committed Sep 10, 2024
1 parent e9e7abe commit d13961f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 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 @@ -75,7 +74,7 @@ class STLAlignedAllocator {
using reference = TYPE&;
using const_reference = const TYPE&;
using size_type = std::size_t;
using difference_type = std::ptrdiff_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 d13961f

Please sign in to comment.