From ac4920255aba2e74a8700438a28d1ed8e1600510 Mon Sep 17 00:00:00 2001 From: Dydzio Date: Fri, 16 Sep 2016 21:44:22 +0200 Subject: [PATCH] Fix for compile error in VS 2015 Disabling Boost variadic templates to make VCMI compilable under Visual Studio 2015. Apparently this is MSVS compiler bug. --- Global.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Global.h b/Global.h index 58c2f7d9f..3dabeba83 100644 --- a/Global.h +++ b/Global.h @@ -146,6 +146,10 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size."); #define BOOST_THREAD_DONT_PROVIDE_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE 1 #define BOOST_BIND_NO_PLACEHOLDERS +#if defined(_MSC_VER) && (_MSC_VER == 1900) +#define BOOST_NO_CXX11_VARIADIC_TEMPLATES //Variadic templates are buggy in VS2015, so turn this off to avoid compile errors +#endif + #include #include #include