]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/home/x3/char/detail/cast_char.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / spirit / home / x3 / char / detail / cast_char.hpp
index 2b802c641dce99a2be15ad25648f450e89a6825d..6a2b896c024940470f22ce65c1e5f72a827d31b8 100644 (file)
@@ -26,6 +26,10 @@ namespace boost { namespace spirit { namespace x3 { namespace detail
     template <typename TargetChar, typename SourceChar>
     TargetChar cast_char(SourceChar ch)
     {
+#if defined(_MSC_VER)
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
         if (is_signed<TargetChar>::value != is_signed<SourceChar>::value)
         {
             if (is_signed<SourceChar>::value)
@@ -46,6 +50,9 @@ namespace boost { namespace spirit { namespace x3 { namespace detail
             // source and target has same signedness
             return TargetChar(ch); // just cast
         }
+#if defined(_MSC_VER)
+# pragma warning(pop)
+#endif
     }
 }}}}