summaryrefslogtreecommitdiff
path: root/boost/intrusive/detail/workaround.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/intrusive/detail/workaround.hpp')
-rw-r--r--boost/intrusive/detail/workaround.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/boost/intrusive/detail/workaround.hpp b/boost/intrusive/detail/workaround.hpp
index a9e157077a..f0cfaf2b2d 100644
--- a/boost/intrusive/detail/workaround.hpp
+++ b/boost/intrusive/detail/workaround.hpp
@@ -23,6 +23,11 @@
#include <boost/config.hpp>
#endif
+// 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
+
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
#define BOOST_INTRUSIVE_PERFECT_FORWARDING
#endif