no_has_xxx.cpp 748 B

123456789101112131415161718192021222324252627282930
  1. // Copyright Aleksey Gurtovoy 2000-2004
  2. // Copyright David Abrahams 2003
  3. //
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // See http://www.boost.org/libs/mpl for documentation.
  9. // $Id$
  10. // $Date$
  11. // $Revision$
  12. // This file tests that we have the right value for
  13. // BOOST_MPL_CFG_NO_HAS_XXX, and that 'has_xxx' doesn't just fail to
  14. // compile arbitrarily.
  15. #include <boost/mpl/aux_/config/has_xxx.hpp>
  16. #if defined(BOOST_MPL_CFG_NO_HAS_XXX)
  17. # define HAS_XXX_ASSERT(x) MPL_ASSERT_NOT(x)
  18. #endif
  19. #if defined(BOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE)
  20. # define HAS_XXX_TEMPLATE_ASSERT(x) MPL_ASSERT_NOT(x)
  21. #endif
  22. #include "has_xxx.cpp"