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;