#include <gil_concept.hpp>
Channels are considered compatible if their value types (ignoring constness and references) are the same.
Example:
BOOST_STATIC_ASSERT((channels_are_compatible<bits8, const bits8&>::value));