has_logical_not.hpp 998 B

1234567891011121314151617181920212223242526272829303132
  1. // (C) Copyright 2009-2011 Frederic Bron.
  2. //
  3. // Use, modification and distribution are subject to the Boost Software License,
  4. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt).
  6. //
  7. // See http://www.boost.org/libs/type_traits for most recent version including documentation.
  8. #ifndef BOOST_TT_HAS_LOGICAL_NOT_HPP_INCLUDED
  9. #define BOOST_TT_HAS_LOGICAL_NOT_HPP_INCLUDED
  10. #if defined(__GNUC__) && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ > 40800)
  11. #pragma GCC diagnostic push
  12. #pragma GCC diagnostic ignored "-Wunused-value"
  13. #endif
  14. #define BOOST_TT_TRAIT_NAME has_logical_not
  15. #define BOOST_TT_TRAIT_OP !
  16. #define BOOST_TT_FORBIDDEN_IF\
  17. false
  18. #include <boost/type_traits/detail/has_prefix_operator.hpp>
  19. #undef BOOST_TT_TRAIT_NAME
  20. #undef BOOST_TT_TRAIT_OP
  21. #undef BOOST_TT_FORBIDDEN_IF
  22. #if defined(__GNUC__) && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ > 40800)
  23. #pragma GCC diagnostic pop
  24. #endif
  25. #endif