From 50fc5c818cfe56705640cd662589ec1e0b5789cc Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 28 Jul 2014 16:57:16 +0000 Subject: [PATCH] base: FUCK VISUAL STUDIO; VISUAL STUDIO IS DYING; VISUAL STUDIO SUCKS; VISUAL STUDIO IS DEAD TO ME; VISUAL STUDIO DID WTC. --- src/lol/base/types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lol/base/types.h b/src/lol/base/types.h index 17b81b39..bfe2f8d2 100644 --- a/src/lol/base/types.h +++ b/src/lol/base/types.h @@ -31,7 +31,9 @@ class half; * Forward declaration of vec_t, mat_t, cmplx_t, quat_t */ -int const FULL_SWIZZLE = 0; +/* HACK: if this is declared int const, Visual Studio becomes unable + * to perform template argument deduction. */ +#define FULL_SWIZZLE (0) template struct vec_t; template struct mat_t;