Skip to content

Commit 7915ced

Browse files
committed
headers: Add non-simplified definition of nullptr_t
1 parent e98d51d commit 7915ced

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

headers/cstddef

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ namespace std {
2929
typedef long ptrdiff_t;
3030
typedef unsigned long size_t;
3131
typedef long max_align_t;
32+
#if CPPREFERENCE_STDVER >= 2011
33+
#if CPPREFERENCE_SIMPLIFY_TYPEDEFS
3234
typedef void* nullptr_t;
35+
#else
36+
typedef decltype(nullptr) nullptr_t;
37+
#endif
38+
#endif
3339
} // namespace std
3440

3541
#endif // CPPREFERENCE_CSTDDEF_H

0 commit comments

Comments
 (0)