From d139eb9729cafd5c217df418f37b12b627bce685 Mon Sep 17 00:00:00 2001 From: Gary Talent <gtalent2@gmail.com> Date: Sun, 17 Mar 2019 13:21:04 -0500 Subject: [PATCH] [ox/std] Move std::size_t delcaration to beginning of std/types.hpp --- deps/ox/src/ox/std/types.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/deps/ox/src/ox/std/types.hpp b/deps/ox/src/ox/std/types.hpp index 4605d5f0..2af74834 100644 --- a/deps/ox/src/ox/std/types.hpp +++ b/deps/ox/src/ox/std/types.hpp @@ -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");