1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(BOOST_FUSION_SUPPORT_UNUSED_20070305_1038)
8 #define BOOST_FUSION_SUPPORT_UNUSED_20070305_1038
10 #include <boost/fusion/support/config.hpp>
13 #include <boost/config.hpp>
14 #if defined(BOOST_MSVC)
15 # pragma warning(push)
16 # pragma warning(disable: 4522) // multiple assignment operators specified warning
19 #define BOOST_FUSION_UNUSED_HAS_IO
21 namespace boost { namespace fusion
25 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
26 unused_type() BOOST_NOEXCEPT
31 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
32 unused_type(T const&) BOOST_NOEXCEPT
37 BOOST_FUSION_CONSTEXPR_THIS BOOST_FUSION_GPU_ENABLED
39 operator=(T const&) const BOOST_NOEXCEPT
45 BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
47 operator=(T const&) BOOST_NOEXCEPT
52 BOOST_FUSION_CONSTEXPR_THIS BOOST_FUSION_GPU_ENABLED
54 operator=(unused_type const&) const BOOST_NOEXCEPT
59 BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
61 operator=(unused_type const&) BOOST_NOEXCEPT
67 BOOST_CONSTEXPR_OR_CONST unused_type unused = unused_type();
73 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
74 unused_only(unused_type const&) BOOST_NOEXCEPT {}
79 inline std::ostream& operator<<(std::ostream& out, detail::unused_only const&) BOOST_NOEXCEPT
85 inline std::istream& operator>>(std::istream& in, unused_type&) BOOST_NOEXCEPT
91 #if defined(BOOST_MSVC)