diff options
Diffstat (limited to 'boost/spirit/home/support/unused.hpp')
-rw-r--r-- | boost/spirit/home/support/unused.hpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/boost/spirit/home/support/unused.hpp b/boost/spirit/home/support/unused.hpp index 4197d6af57..4ffad6b09b 100644 --- a/boost/spirit/home/support/unused.hpp +++ b/boost/spirit/home/support/unused.hpp @@ -15,11 +15,6 @@ #include <boost/config.hpp> #include <boost/mpl/bool.hpp> -#if defined(BOOST_MSVC) -# pragma warning(push) -# pragma warning(disable: 4522) // multiple assignment operators specified warning -#endif - /////////////////////////////////////////////////////////////////////////////// namespace boost { namespace spirit { @@ -31,9 +26,7 @@ namespace boost { namespace spirit /////////////////////////////////////////////////////////////////////////// struct unused_type { - unused_type() - { - } + BOOST_DEFAULTED_FUNCTION(unused_type(), {}) template <typename T> unused_type(T const&) @@ -53,18 +46,6 @@ namespace boost { namespace spirit { return *this; } - - unused_type const& - operator=(unused_type const&) const - { - return *this; - } - - unused_type& - operator=(unused_type const&) - { - return *this; - } }; unused_type const unused = unused_type(); @@ -98,8 +79,4 @@ namespace boost { namespace spirit } }} -#if defined(BOOST_MSVC) -# pragma warning(pop) -#endif - #endif |