Add error message when attempting to use a deprecated compiler.

This commit is contained in:
jzmaddock
2014-01-26 10:16:19 +00:00
parent 9647c8ddb4
commit 902102ee69

View File

@ -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