Skip to content

Commit f668fa4

Browse files
committed
Replace nullptr_t by decltype(nullptr)
1 parent ed7143d commit f668fa4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/kernel_float/memory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ struct aligned_ptr {
293293
static_assert(alignment >= alignof(T), "invalid alignment");
294294

295295
KERNEL_FLOAT_INLINE
296-
aligned_ptr(nullptr_t = nullptr) {}
296+
aligned_ptr(decltype(nullptr) = nullptr) {}
297297

298298
KERNEL_FLOAT_INLINE
299299
explicit aligned_ptr(T* ptr) : ptr_(ptr) {}
@@ -430,7 +430,7 @@ struct aligned_ptr<const T, alignment> {
430430
static_assert(alignment >= alignof(T), "invalid alignment");
431431

432432
KERNEL_FLOAT_INLINE
433-
aligned_ptr(nullptr_t = nullptr) {}
433+
aligned_ptr(decltype(nullptr) = nullptr) {}
434434

435435
KERNEL_FLOAT_INLINE
436436
explicit aligned_ptr(T* ptr) : ptr_(ptr) {}

single_include/kernel_float.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
//================================================================================
1818
// this file has been auto-generated, do not modify its contents!
19-
// date: 2023-10-23 10:41:33.267957
20-
// git hash: 5844245b6d2d679f23d9ccc9693a3274b75917f9
19+
// date: 2023-10-23 12:07:20.751837
20+
// git hash: ed7143d9b83a89f043191f4957760081bda60b4d
2121
//================================================================================
2222

2323
#ifndef KERNEL_FLOAT_MACROS_H
@@ -2568,7 +2568,7 @@ struct aligned_ptr {
25682568
static_assert(alignment >= alignof(T), "invalid alignment");
25692569

25702570
KERNEL_FLOAT_INLINE
2571-
aligned_ptr(nullptr_t = nullptr) {}
2571+
aligned_ptr(decltype(nullptr) = nullptr) {}
25722572

25732573
KERNEL_FLOAT_INLINE
25742574
explicit aligned_ptr(T* ptr) : ptr_(ptr) {}
@@ -2705,7 +2705,7 @@ struct aligned_ptr<const T, alignment> {
27052705
static_assert(alignment >= alignof(T), "invalid alignment");
27062706

27072707
KERNEL_FLOAT_INLINE
2708-
aligned_ptr(nullptr_t = nullptr) {}
2708+
aligned_ptr(decltype(nullptr) = nullptr) {}
27092709

27102710
KERNEL_FLOAT_INLINE
27112711
explicit aligned_ptr(T* ptr) : ptr_(ptr) {}

0 commit comments

Comments
 (0)