From ecfc74dcb174827f21beb9a193ca137d486f52af Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 1 May 2004 10:51:05 +0000 Subject: [PATCH] Added checks to verify options at compile time. [SVN r22715] --- include/boost/config/compiler/intel.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/boost/config/compiler/intel.hpp b/include/boost/config/compiler/intel.hpp index 18ad1875..eeceab17 100644 --- a/include/boost/config/compiler/intel.hpp +++ b/include/boost/config/compiler/intel.hpp @@ -78,6 +78,24 @@ # endif #endif +// +// Verify that we have actually got BOOST_NO_INTRINSIC_WCHAR_T +// set correctly: +// +#if defined(BOOST_NO_INTRINSIC_WCHAR_T) +#include +template< typename T > struct assert_no_intrinsic_wchar_t; +template<> struct assert_no_intrinsic_wchar_t { typedef void type; }; +// if you see an error here then you need to unset BOOST_NO_INTRINSIC_WCHAR_T: +typedef assert_no_intrinsic_wchar_t::type assert_no_intrinsic_wchar_t_; +#else +template< typename T > struct assert_intrinsic_wchar_t; +template<> struct assert_intrinsic_wchar_t {}; +// if you see an error here then define BOOST_NO_INTRINSIC_WCHAR_T on the command line: +template<> struct assert_intrinsic_wchar_t {}; +#endif + + #if (BOOST_INTEL_CXX_VERSION <= 800) || !defined(BOOST_STRICT_CONFIG) # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL #endif