From 902102ee6949129c387a23b00b5c06ba5fddf869 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sun, 26 Jan 2014 10:16:19 +0000 Subject: [PATCH] Add error message when attempting to use a deprecated compiler. --- include/boost/config/suffix.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/config/suffix.hpp b/include/boost/config/suffix.hpp index 337100a1..3bb325ed 100644 --- a/include/boost/config/suffix.hpp +++ b/include/boost/config/suffix.hpp @@ -943,5 +943,14 @@ namespace std{ using ::type_info; } #define BOOST_HAS_VARIADIC_TMPL #endif +// +// Finish off with checks for macros that are depricated / no longer supported, +// if any of these are set then it's very likely that much of Boost will no +// longer work. So stop with a #error for now, but give the user a chance +// to continue at their own risk if they really want to: +// +#if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(BOOST_CONFIG_ALLOW_DEPRECATED) +# error "You are using a compiler which lacks features which are now a minimum requirement in order to use Boost, define BOOST_CONFIG_ALLOW_DEPRECATED if you want to continue at your own risk!!!" +#endif #endif