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