From 44b737b5ea6eef82414d6d94a7e373c2953b85c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Sun, 28 Aug 2022 14:46:32 -0700 Subject: [PATCH] Cleanup. --- include/bx/inline/bx.inl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/bx/inline/bx.inl b/include/bx/inline/bx.inl index af0e0ea..506165c 100644 --- a/include/bx/inline/bx.inl +++ b/include/bx/inline/bx.inl @@ -12,8 +12,8 @@ namespace bx // Reference(S): // - https://web.archive.org/web/20181115035420/http://cnicholson.net/2011/01/stupid-c-tricks-a-better-sizeof_array/ // - template - char(&CountOfRequireArrayArgumentT(const Ty(&)[Num]))[Num]; + template + char (&CountOfRequireArrayArgumentT(const Ty (&)[NumT]) )[NumT]; template struct isEnabled @@ -33,6 +33,12 @@ namespace bx return __is_trivially_copyable(Ty); } + template + constexpr bool isSigned() + { + return Ty(-1) < Ty(0); + } + template inline Ty* addressOf(Ty& _a) { @@ -71,12 +77,6 @@ namespace bx Ty tmp = _a; _a = _b; _b = tmp; } - template - constexpr bool isSigned() - { - return Ty(-1) < Ty(0); - } - template struct LimitsT {