Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / gil / extension / toolbox / metafunctions / channel_type.hpp
index ce46cc1..a0e4a35 100644 (file)
@@ -14,8 +14,8 @@
 
 #include <boost/gil/bit_aligned_pixel_reference.hpp>
 #include <boost/gil/channel.hpp>
+#include <boost/gil/detail/mp11.hpp>
 
-#include <boost/mpl/at.hpp>
 #include <boost/utility/enable_if.hpp> // boost::lazy_enable_if
 
 namespace boost{ namespace gil {
@@ -29,7 +29,7 @@ struct gen_chan_ref
     using type = packed_dynamic_channel_reference
         <
             B,
-            mpl::at_c<C, 0>::type::value,
+            mp11::mp_at_c<C, 0>::value,
             M
         >;
 };
@@ -58,27 +58,27 @@ struct gen_chan_ref_p
     using type = packed_dynamic_channel_reference
         <
             B,
-            get_num_bits<typename mpl::at_c<C, 0>::type>::value,
+            get_num_bits<mp11::mp_at_c<C, 0>>::value,
             true
         >;
 };
 
 // packed_pixel
 template < typename BitField
-         , typename ChannelRefVec
+         , typename ChannelRefs
          , typename Layout
          >
 struct channel_type< packed_pixel< BitField
-                                 , ChannelRefVec
+                                 , ChannelRefs
                                  , Layout
                                  >
                    > : lazy_enable_if< is_homogeneous< packed_pixel< BitField
-                                                                   , ChannelRefVec
+                                                                   , ChannelRefs
                                                                    , Layout
                                                                    >
                                                      >
                                      , gen_chan_ref_p< BitField
-                                                     , ChannelRefVec
+                                                     , ChannelRefs
                                                      , Layout
                                                      >
                                      > {};