]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/home/support/char_class.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / spirit / home / support / char_class.hpp
index c9c6e51c27dc7e4bdf4cc49ef4753adc21fdb343..0f2e888bbd6c96b5fb2fcef258cce2b04ed21532 100644 (file)
@@ -754,39 +754,14 @@ namespace boost { namespace spirit { namespace char_class
 namespace boost { namespace spirit { namespace traits
 {
     ///////////////////////////////////////////////////////////////////////////
-    // This meta-function evaluates to mpl::true_ if the function
-    // char_encoding::ischar() needs to be called to ensure correct matching.
-    // This happens mainly if the character type returned from the underlying
-    // iterator is larger than the character type of the used character
-    // encoding. Additionally, this meta-function provides a customization
-    // point for the lexer library to enforce this behavior while parsing
-    // a token stream.
-    template <typename Char, typename BaseChar>
-    struct mustcheck_ischar
-      : mpl::bool_<(sizeof(Char) > sizeof(BaseChar)) ? true : false> {};
-
-    ///////////////////////////////////////////////////////////////////////////
-    // The following template calls char_encoding::ischar, if necessary
-    template <typename CharParam, typename CharEncoding
-      , bool MustCheck = mustcheck_ischar<
-            CharParam, typename CharEncoding::char_type>::value>
-    struct ischar
-    {
-        static bool call(CharParam)
-        {
-            return true;
-        }
-    };
-
     template <typename CharParam, typename CharEncoding>
-    struct ischar<CharParam, CharEncoding, true>
+    struct ischar
     {
         static bool call(CharParam const& ch)
         {
-            return CharEncoding::ischar(int(ch));
+           return CharEncoding::ischar(int(ch));
         }
     };
-
 }}}
 
 #if defined(BOOST_MSVC)