Browse Source

Workaround a -what I think- clang bug

Panagiotis Christopoulos Charitos 5 years ago
parent
commit
d46e9d6a2e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/anki/math/Vec.h

+ 4 - 2
src/anki/math/Vec.h

@@ -3050,7 +3050,8 @@ public:
 		}
 	}
 
-	ANKI_ENABLE_METHOD(std::is_integral<T>::value&& std::is_unsigned<T>::value)
+	static constexpr Bool CLANG_WORKAROUND = std::is_integral<T>::value && std::is_unsigned<T>::value;
+	ANKI_ENABLE_METHOD(CLANG_WORKAROUND)
 	void toString(StringAuto& str) const
 	{
 		for(U i = 0; i < N; ++i)
@@ -3059,7 +3060,8 @@ public:
 		}
 	}
 
-	ANKI_ENABLE_METHOD(std::is_integral<T>::value&& std::is_signed<T>::value)
+	static constexpr Bool CLANG_WORKAROUND2 = std::is_integral<T>::value && std::is_signed<T>::value;
+	ANKI_ENABLE_METHOD(CLANG_WORKAROUND2)
 	void toString(StringAuto& str) const
 	{
 		for(U i = 0; i < N; ++i)