ignore.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*=============================================================================
  2. Copyright (c) 2001 Doug Gregor
  3. Copyright (c) 1999-2003 Jaakko Jarvi
  4. Copyright (c) 2001-2011 Joel de Guzman
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ==============================================================================*/
  8. #if !defined(FUSION_IGNORE_07192005_0329)
  9. #define FUSION_IGNORE_07192005_0329
  10. #include <boost/fusion/support/config.hpp>
  11. namespace boost { namespace fusion
  12. {
  13. // Swallows any assignment (by Doug Gregor)
  14. namespace detail
  15. {
  16. struct swallow_assign
  17. {
  18. template<typename T>
  19. BOOST_FUSION_CONSTEXPR_THIS BOOST_FUSION_GPU_ENABLED
  20. swallow_assign const&
  21. operator=(const T&) const
  22. {
  23. return *this;
  24. }
  25. };
  26. }
  27. // "ignore" allows tuple positions to be ignored when using "tie".
  28. BOOST_CONSTEXPR_OR_CONST detail::swallow_assign ignore = detail::swallow_assign();
  29. }}
  30. #endif