]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/home/x3/support/unused.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / spirit / home / x3 / support / unused.hpp
index f7857e0dbdcc9449522641093e078327c29a44ff..91471307a6e744e79c2be03b77eb2470e94c2354 100644 (file)
@@ -8,23 +8,14 @@
 #if !defined(BOOST_SPIRIT_X3_UNUSED_APRIL_16_2006_0616PM)
 #define BOOST_SPIRIT_X3_UNUSED_APRIL_16_2006_0616PM
 
-#include <ostream>
-#include <istream>
-#include <boost/mpl/identity.hpp>
-
-#if defined(BOOST_MSVC)
-# pragma warning(push)
-# pragma warning(disable: 4522) // multiple assignment operators specified warning
-#endif
+#include <iosfwd>
 
 ///////////////////////////////////////////////////////////////////////////////
 namespace boost { namespace spirit { namespace x3
 {
     struct unused_type
     {
-        unused_type()
-        {
-        }
+        unused_type() = default;
 
         template <typename T>
         unused_type(T const&)
@@ -45,18 +36,6 @@ namespace boost { namespace spirit { namespace x3
             return *this;
         }
 
-        unused_type const&
-        operator=(unused_type const&) const
-        {
-            return *this;
-        }
-
-        unused_type&
-        operator=(unused_type const&)
-        {
-            return *this;
-        }
-
         // unused_type can also masquerade as an empty context (see context.hpp)
 
         template <typename ID>
@@ -79,8 +58,4 @@ namespace boost { namespace spirit { namespace x3
     }
 }}}
 
-#if defined(BOOST_MSVC)
-# pragma warning(pop)
-#endif
-
 #endif