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 {