[ox/std] Move std::size_t delcaration to beginning of std/types.hpp
This commit is contained in:
parent
bbd1d187b2
commit
d139eb9729
14
deps/ox/src/ox/std/types.hpp
vendored
14
deps/ox/src/ox/std/types.hpp
vendored
@ -8,6 +8,13 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
namespace std {
|
||||||
|
|
||||||
|
using nullptr_t = decltype(nullptr);
|
||||||
|
using size_t = decltype(alignof(int));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#if __has_include(<cstdint>)
|
#if __has_include(<cstdint>)
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
@ -114,13 +121,6 @@ using Unsigned = Uint<sizeof(T) * 8>;
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
namespace std {
|
|
||||||
|
|
||||||
using nullptr_t = decltype(nullptr);
|
|
||||||
using size_t = decltype(alignof(int));
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
static_assert(sizeof(int8_t) == 1, "int8_t is wrong size");
|
static_assert(sizeof(int8_t) == 1, "int8_t is wrong size");
|
||||||
static_assert(sizeof(int16_t) == 2, "int16_t is wrong size");
|
static_assert(sizeof(int16_t) == 2, "int16_t is wrong size");
|
||||||
static_assert(sizeof(int32_t) == 4, "int32_t is wrong size");
|
static_assert(sizeof(int32_t) == 4, "int32_t is wrong size");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user