From 5852698f7ae8342b8aeb71395e490530b153adb4 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 26 May 2019 19:55:43 +0300 Subject: [PATCH] Disable variadic templates for MSVC-12 to avoid ICEs. Fixes https://github.com/boostorg/intrusive/issues/44. --- include/boost/intrusive/detail/workaround.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/intrusive/detail/workaround.hpp b/include/boost/intrusive/detail/workaround.hpp index df4b700..f0cfaf2 100644 --- a/include/boost/intrusive/detail/workaround.hpp +++ b/include/boost/intrusive/detail/workaround.hpp @@ -23,7 +23,8 @@ #include #endif -#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) +// MSVC-12 ICEs when variadic templates are enabled. +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && (!defined(BOOST_MSVC) || BOOST_MSVC >= 1900) #define BOOST_INTRUSIVE_VARIADIC_TEMPLATES #endif