#endif // BOOST_GIL_IO_ENABLE_GRAY_ALPHA
#include <cstddef>
+#include <type_traits>
namespace boost { namespace gil { namespace detail {
} // namespace detail
-template< typename Pixel >
-struct is_read_supported< Pixel
- , png_tag
- >
- : mpl::bool_< detail::png_read_support< typename channel_type< Pixel >::type
- , typename color_space_type< Pixel >::type
- >::is_supported
- >
+template<typename Pixel>
+struct is_read_supported<Pixel, png_tag>
+ : std::integral_constant
+ <
+ bool,
+ detail::png_read_support
+ <
+ typename channel_type<Pixel>::type,
+ typename color_space_type<Pixel>::type
+ >::is_supported
+ >
{
using parent_t = detail::png_read_support
<
static const png_color_type::type _color_type = parent_t::_color_type;
};
-template< typename Pixel >
-struct is_write_supported< Pixel
- , png_tag
- >
- : mpl::bool_< detail::png_write_support< typename channel_type< Pixel >::type
- , typename color_space_type< Pixel >::type
- >::is_supported
- >
+template<typename Pixel>
+struct is_write_supported<Pixel, png_tag>
+ : std::integral_constant
+ <
+ bool,
+ detail::png_write_support
+ <
+ typename channel_type<Pixel>::type,
+ typename color_space_type<Pixel>::type
+ >::is_supported
+ >
{
using parent_t = detail::png_write_support
<