// // Copyright 2012 Christian Henning // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #ifndef BOOST_GIL_IO_GET_WRITE_DEVICE_HPP #define BOOST_GIL_IO_GET_WRITE_DEVICE_HPP #include #include #include #include namespace boost { namespace gil { template struct get_write_device {}; template struct get_write_device < Device, FormatTag, typename std::enable_if < mp11::mp_and < detail::is_adaptable_output_device, is_format_tag >::value >::type > { using type = typename detail::is_adaptable_output_device::device_type; }; template struct get_write_device < String, FormatTag, typename std::enable_if < mp11::mp_and < detail::is_supported_path_spec, is_format_tag >::value >::type > { using type = detail::file_stream_device; }; }} // namespace boost::gil #endif