Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion include/boost/gil/channel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,9 @@ void swap(const boost::gil::packed_dynamic_channel_reference<BF,NB,M> x, const b

// \brief Determines the fundamental type which may be used, e.g., to cast from larger to smaller channel types.
namespace boost { namespace gil {

namespace detail {

template <typename T>
struct base_channel_type_impl { using type = T; };

Expand All @@ -715,8 +718,10 @@ template <typename ChannelValue, typename MinV, typename MaxV>
struct base_channel_type_impl<scoped_channel_value<ChannelValue, MinV, MaxV> >
{ using type = ChannelValue; };

} // namespace detail

template <typename T>
struct base_channel_type : base_channel_type_impl<typename std::remove_cv<T>::type> {};
struct base_channel_type : detail::base_channel_type_impl<typename std::remove_cv<T>::type> {};

}} //namespace boost::gil

Expand Down