diff options
Diffstat (limited to 'boost/gil/extension/io/png/detail/is_allowed.hpp')
-rw-r--r-- | boost/gil/extension/io/png/detail/is_allowed.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/boost/gil/extension/io/png/detail/is_allowed.hpp b/boost/gil/extension/io/png/detail/is_allowed.hpp index ac1f9c1749..3fe8386bb6 100644 --- a/boost/gil/extension/io/png/detail/is_allowed.hpp +++ b/boost/gil/extension/io/png/detail/is_allowed.hpp @@ -8,6 +8,8 @@ #ifndef BOOST_GIL_EXTENSION_IO_PNG_DETAIL_IS_ALLOWED_HPP #define BOOST_GIL_EXTENSION_IO_PNG_DETAIL_IS_ALLOWED_HPP +#include <boost/gil/extension/io/png/tags.hpp> + #include <boost/mpl/bool_fwd.hpp> #include <boost/mpl/for_each.hpp> @@ -18,10 +20,9 @@ bool is_allowed( const image_read_info< png_tag >& info , mpl::true_ // is read_and_no_convert ) { - typedef typename get_pixel_type< View >::type pixel_t; + using pixel_t = typename get_pixel_type<View>::type; - typedef typename channel_traits< - typename element_type< pixel_t >::type >::value_type channel_t; + using channel_t = typename channel_traits<typename element_type<pixel_t>::type>::value_type; const png_num_channels::type dst_num_channels = num_channels< pixel_t >::value; const png_bitdepth::type dst_bit_depth = detail::unsigned_integral_num_bits< channel_t >::value; |