mirror of
https://github.com/boostorg/gil.git
synced 2026-02-27 05:02:19 +00:00
Replace some uses of boost::is_same with std::is_same (#225)
Those are places boost::is_same can be replaced in non-intrusive way. Remaining are types derived from boost::is_same, where the replacing would affect all their uses - effectively switching from boost::true_/false_ types to std::true_type and std::false_type. Such change needs to come along with Boost.MPL to MP11 migration.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <map>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
using namespace boost::gil;
|
||||
@@ -522,9 +523,27 @@ void static_checks() {
|
||||
static_assert(!view_is_mutable<cmyk8c_planar_step_view_t>::value, "");
|
||||
static_assert(view_is_mutable<rgb8_planar_view_t>::value, "");
|
||||
|
||||
static_assert(boost::is_same<derived_view_type<cmyk8c_planar_step_view_t>::type, cmyk8c_planar_step_view_t>::value, "");
|
||||
static_assert(boost::is_same<derived_view_type<cmyk8c_planar_step_view_t, std::uint16_t, rgb_layout_t>::type, rgb16c_planar_step_view_t>::value, "");
|
||||
static_assert(boost::is_same<derived_view_type<cmyk8c_planar_step_view_t, use_default, rgb_layout_t, mpl::false_, use_default, mpl::false_>::type, rgb8c_step_view_t>::value, "");
|
||||
static_assert(std::is_same
|
||||
<
|
||||
derived_view_type<cmyk8c_planar_step_view_t>::type,
|
||||
cmyk8c_planar_step_view_t
|
||||
>::value, "");
|
||||
static_assert(std::is_same
|
||||
<
|
||||
derived_view_type
|
||||
<
|
||||
cmyk8c_planar_step_view_t, std::uint16_t, rgb_layout_t
|
||||
>::type,
|
||||
rgb16c_planar_step_view_t
|
||||
>::value, "");
|
||||
static_assert(std::is_same
|
||||
<
|
||||
derived_view_type
|
||||
<
|
||||
cmyk8c_planar_step_view_t, use_default, rgb_layout_t, mpl::false_, use_default, mpl::false_
|
||||
>::type,
|
||||
rgb8c_step_view_t
|
||||
>::value, "");
|
||||
|
||||
// test view get raw data (mostly compile-time test)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user