|
@@ -16,19 +16,13 @@ namespace bx
|
|
|
char(&CountOfRequireArrayArgumentT(const Ty(&)[Num]))[Num];
|
|
char(&CountOfRequireArrayArgumentT(const Ty(&)[Num]))[Num];
|
|
|
|
|
|
|
|
template<bool>
|
|
template<bool>
|
|
|
- inline constexpr bool isEnabled()
|
|
|
|
|
|
|
+ BX_FORCE_INLINE constexpr bool isEnabled()
|
|
|
{
|
|
{
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- template<class Ty>
|
|
|
|
|
- inline constexpr bool isTriviallyCopyable()
|
|
|
|
|
- {
|
|
|
|
|
- return __is_trivially_copyable(Ty);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
template<>
|
|
template<>
|
|
|
- inline constexpr bool isEnabled<false>()
|
|
|
|
|
|
|
+ BX_FORCE_INLINE constexpr bool isEnabled<false>()
|
|
|
{
|
|
{
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
@@ -38,6 +32,12 @@ namespace bx
|
|
|
return _x;
|
|
return _x;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ template<class Ty>
|
|
|
|
|
+ inline constexpr bool isTriviallyCopyable()
|
|
|
|
|
+ {
|
|
|
|
|
+ return __is_trivially_copyable(Ty);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
template<typename Ty>
|
|
template<typename Ty>
|
|
|
inline void swap(Ty& _a, Ty& _b)
|
|
inline void swap(Ty& _a, Ty& _b)
|
|
|
{
|
|
{
|