Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / gil / extension / io / jpeg / detail / supported_types.hpp
index 08c4f2c..3df7311 100644 (file)
@@ -13,8 +13,7 @@
 #include <boost/gil/channel.hpp>
 #include <boost/gil/color_base.hpp>
 
-#include <boost/mpl/bool_fwd.hpp>
-#include <boost/type_traits/is_same.hpp>
+#include <type_traits>
 
 namespace boost { namespace gil { namespace detail {
 
@@ -78,14 +77,17 @@ struct jpeg_write_support<uint8_t
 
 } // namespace detail
 
-template< typename Pixel >
-struct is_read_supported< Pixel
-                        , jpeg_tag
-                        >
-    : mpl::bool_< detail::jpeg_read_support< typename channel_type< Pixel >::type
-                                           , typename color_space_type< Pixel >::type
-                                           >::is_supported
-                >
+template<typename Pixel>
+struct is_read_supported<Pixel, jpeg_tag>
+    : std::integral_constant
+    <
+        bool,
+        detail::jpeg_read_support
+        <
+            typename channel_type<Pixel>::type,
+            typename color_space_type<Pixel>::type
+        >::is_supported
+    >
 {
     using parent_t = detail::jpeg_read_support
         <
@@ -96,14 +98,17 @@ struct is_read_supported< Pixel
     static const typename jpeg_color_space::type _color_space = parent_t::_color_space;
 };
 
-template< typename Pixel >
-struct is_write_supported< Pixel
-                         , jpeg_tag
-                         >
-    : mpl::bool_< detail::jpeg_write_support< typename channel_type< Pixel >::type
-                                            , typename color_space_type< Pixel >::type
-                                            >::is_supported
-                >
+template<typename Pixel>
+struct is_write_supported<Pixel, jpeg_tag>
+    : std::integral_constant
+    <
+        bool,
+        detail::jpeg_write_support
+        <
+            typename channel_type<Pixel>::type,
+            typename color_space_type<Pixel>::type
+        >::is_supported
+    >
 {};
 
 } // namespace gil