diff options
Diffstat (limited to 'boost/gil/extension/io/tiff/detail/writer_backend.hpp')
-rw-r--r-- | boost/gil/extension/io/tiff/detail/writer_backend.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/boost/gil/extension/io/tiff/detail/writer_backend.hpp b/boost/gil/extension/io/tiff/detail/writer_backend.hpp index 65b32942bd..c4020ce3c6 100644 --- a/boost/gil/extension/io/tiff/detail/writer_backend.hpp +++ b/boost/gil/extension/io/tiff/detail/writer_backend.hpp @@ -9,6 +9,7 @@ #define BOOST_GIL_EXTENSION_IO_TIFF_DETAIL_WRITER_BACKEND_HPP #include <boost/gil/extension/io/tiff/tags.hpp> +#include <boost/gil/extension/io/tiff/detail/device.hpp> #include <boost/mpl/contains.hpp> @@ -29,7 +30,7 @@ struct writer_backend< Device { public: - typedef tiff_tag format_tag_t; + using format_tag_t = tiff_tag; public: @@ -45,11 +46,11 @@ protected: template< typename View > void write_header( const View& view ) { - typedef typename View::value_type pixel_t; + using pixel_t = typename View::value_type; // get the type of the first channel (heterogeneous pixels might be broken for now!) - typedef typename channel_traits< typename element_type< pixel_t >::type >::value_type channel_t; - typedef typename color_space_type< View >::type color_space_t; + using channel_t = typename channel_traits<typename element_type<pixel_t>::type>::value_type; + using color_space_t = typename color_space_type<View>::type; if(! this->_info._photometric_interpretation_user_defined ) { @@ -88,7 +89,7 @@ protected: this->_io_dev.template set_property<tiff_bits_per_sample>( bits_per_sample ); // write sample format - tiff_sample_format::type sampl_format = detail::sample_format< channel_t >::type::value; + tiff_sample_format::type sampl_format = detail::sample_format< channel_t >::value; this->_io_dev.template set_property<tiff_sample_format>( sampl_format ); // write photometric format |