[ox/std] Move std::size_t delcaration to beginning of std/types.hpp

This commit is contained in:
Gary Talent 2019-03-17 13:21:04 -05:00
parent bbd1d187b2
commit d139eb9729

View File

@ -8,6 +8,13 @@
#pragma once
namespace std {
using nullptr_t = decltype(nullptr);
using size_t = decltype(alignof(int));
}
#if __has_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(int16_t) == 2, "int16_t is wrong size");
static_assert(sizeof(int32_t) == 4, "int32_t is wrong size");