ignore.hpp 1001 B

1234567891011121314151617181920212223242526272829303132
  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. namespace boost { namespace fusion
  11. {
  12. // Swallows any assignment (by Doug Gregor)
  13. namespace detail
  14. {
  15. struct swallow_assign
  16. {
  17. template<typename T>
  18. swallow_assign const&
  19. operator=(const T&) const
  20. {
  21. return *this;
  22. }
  23. };
  24. }
  25. // "ignore" allows tuple positions to be ignored when using "tie".
  26. detail::swallow_assign const ignore = detail::swallow_assign();
  27. }}
  28. #endif