diff --git a/include/boost/gil/bit_aligned_pixel_reference.hpp b/include/boost/gil/bit_aligned_pixel_reference.hpp index da72f6346..13e083e98 100644 --- a/include/boost/gil/bit_aligned_pixel_reference.hpp +++ b/include/boost/gil/bit_aligned_pixel_reference.hpp @@ -22,6 +22,7 @@ #include #include +#include namespace boost { namespace gil { @@ -177,7 +178,7 @@ private: private: static void check_gray() { - static_assert(is_same::value, ""); + static_assert(std::is_same::value, ""); } template void assign(const Channel& chan, mpl::false_) const { check_gray(); gil::at_c<0>(*this)=chan; } diff --git a/include/boost/gil/color_base_algorithm.hpp b/include/boost/gil/color_base_algorithm.hpp index 30f62d2fc..1f013fba3 100644 --- a/include/boost/gil/color_base_algorithm.hpp +++ b/include/boost/gil/color_base_algorithm.hpp @@ -215,7 +215,7 @@ typename color_element_const_reference_type::type get_color(con Example: \code using element_t = element_type::type; -static_assert(boost::is_same::value, ""); +static_assert(std::is_same::value, ""); \endcode */ /// \brief Specifies the element type of a homogeneous color base diff --git a/include/boost/gil/concepts/basic.hpp b/include/boost/gil/concepts/basic.hpp index a1a1c84f6..64f29c7b6 100644 --- a/include/boost/gil/concepts/basic.hpp +++ b/include/boost/gil/concepts/basic.hpp @@ -10,6 +10,7 @@ #include +#include #include // std::swap #if BOOST_GCC >= 40700 @@ -168,7 +169,7 @@ struct SameType { void constraints() { - static_assert(boost::is_same::value_core, ""); + static_assert(std::is_same::value, ""); } }; diff --git a/include/boost/gil/extension/toolbox/color_spaces/ycbcr.hpp b/include/boost/gil/extension/toolbox/color_spaces/ycbcr.hpp index a8553ea36..9d21208f8 100644 --- a/include/boost/gil/extension/toolbox/color_spaces/ycbcr.hpp +++ b/include/boost/gil/extension/toolbox/color_spaces/ycbcr.hpp @@ -19,6 +19,7 @@ #include #include +#include namespace boost{ namespace gil { @@ -102,11 +103,11 @@ struct default_color_converter_impl void operator()( const SRCP& src, DSTP& dst ) const { using dst_channel_t = typename channel_type::type; - convert( src, dst - , typename boost::is_same< typename mpl::int_< sizeof( dst_channel_t ) >::type - , typename mpl::int_<1>::type - >::type() - ); + convert(src, dst, typename std::is_same + < + typename mpl::int_::type, + typename mpl::int_<1>::type + >::type()); } private: diff --git a/io/test/make.cpp b/io/test/make.cpp index a1d91b8e6..8963a60c6 100644 --- a/io/test/make.cpp +++ b/io/test/make.cpp @@ -15,6 +15,7 @@ #include #include +#include #include "paths.hpp" @@ -30,7 +31,7 @@ BOOST_AUTO_TEST_SUITE( gil_io_tests ) BOOST_AUTO_TEST_CASE( make_reader_backend_test ) { { - static_assert(boost::is_same::type, mpl::true_>::value, ""); + static_assert(std::is_same::type, mpl::true_>::value, ""); get_reader_backend< const char*, bmp_tag >::type backend_char = make_reader_backend( bmp_filename.c_str(), bmp_tag() ); get_reader_backend< std::string, bmp_tag >::type backend_string = make_reader_backend( bmp_filename, bmp_tag() ); @@ -133,7 +134,7 @@ BOOST_AUTO_TEST_CASE( make_writer_test ) { using writer_t = get_writer::type; - static_assert(boost::is_same::type, boost::mpl::true_>::value, ""); + static_assert(std::is_same::type, boost::mpl::true_>::value, ""); } { diff --git a/test/image.cpp b/test/image.cpp index 7f161b7f0..1b4d9bc8c 100644 --- a/test/image.cpp +++ b/test/image.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include using namespace boost::gil; @@ -522,9 +523,27 @@ void static_checks() { static_assert(!view_is_mutable::value, ""); static_assert(view_is_mutable::value, ""); - static_assert(boost::is_same::type, cmyk8c_planar_step_view_t>::value, ""); - static_assert(boost::is_same::type, rgb16c_planar_step_view_t>::value, ""); - static_assert(boost::is_same::type, rgb8c_step_view_t>::value, ""); + static_assert(std::is_same + < + derived_view_type::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) { diff --git a/test/pixel.cpp b/test/pixel.cpp index 77b0ae17d..1a16d12e7 100644 --- a/test/pixel.cpp +++ b/test/pixel.cpp @@ -106,10 +106,11 @@ struct do_basic_test : public C1, public C2 // Test swap if both are mutable and if their value type is the same // (We know the second one is mutable) using p1_ref = typename boost::add_reference::type; - test_swap( - boost::mpl::bool_< + test_swap(boost::mpl::bool_ + < pixel_reference_is_mutable::value && - boost::is_same::value> ()); + std::is_same::value + >()); } void test_swap(boost::mpl::false_) {} diff --git a/test/pixel_iterator.cpp b/test/pixel_iterator.cpp index 1f92c333c..070a3b846 100644 --- a/test/pixel_iterator.cpp +++ b/test/pixel_iterator.cpp @@ -12,6 +12,7 @@ #include #include +#include #include using namespace boost::gil; @@ -49,10 +50,10 @@ void test_pixel_iterator() boost::function_requires >(); // TEST dynamic_step_t - static_assert(boost::is_same::type>::value, ""); - static_assert(boost::is_same::type>::value, ""); + static_assert(std::is_same::type>::value, ""); + static_assert(std::is_same::type>::value, ""); - static_assert(boost::is_same::type,gray8c_ptr_t>::value, ""); + static_assert(std::is_same::type,gray8c_ptr_t>::value, ""); // TEST iterator_is_step static_assert(iterator_is_step::value, ""); @@ -68,17 +69,17 @@ void test_pixel_iterator() static_assert(!iterator_is_step::value, ""); using rgb2gray_step_ptr = dynamic_x_step_type::type; - static_assert(boost::is_same>::value, ""); + static_assert(std::is_same>::value, ""); make_step_iterator(rgb2gray_ptr(),2); using rgb2gray_step_ptr1 = dereference_iterator_adaptor; static_assert(iterator_is_step::value, ""); - static_assert(boost::is_same::type>::value, ""); + static_assert(std::is_same::type>::value, ""); using rgb2gray_step_ptr2 = memory_based_step_iterator>; static_assert(iterator_is_step::value, ""); - static_assert(boost::is_same::type>::value, ""); + static_assert(std::is_same::type>::value, ""); make_step_iterator(rgb2gray_step_ptr2(),2); // bit_aligned iterators test diff --git a/toolbox/test/channel_type.cpp b/toolbox/test/channel_type.cpp index 1e4f714be..46c8e200f 100644 --- a/toolbox/test/channel_type.cpp +++ b/toolbox/test/channel_type.cpp @@ -11,7 +11,8 @@ #include // boost::is_integral> #include -#include + +#include namespace bg = boost::gil; @@ -19,14 +20,14 @@ BOOST_AUTO_TEST_SUITE(toolbox_tests) BOOST_AUTO_TEST_CASE(channel_type_test) { - static_assert(boost::is_same + static_assert(std::is_same < unsigned char, bg::channel_type::type >::value, ""); // float32_t is a scoped_channel_value object - static_assert(boost::is_same + static_assert(std::is_same < bg::float32_t, bg::channel_type::type diff --git a/toolbox/test/channel_view.cpp b/toolbox/test/channel_view.cpp index 97c0aa627..fe42b38a4 100644 --- a/toolbox/test/channel_view.cpp +++ b/toolbox/test/channel_view.cpp @@ -9,7 +9,8 @@ #include #include -#include + +#include namespace bg = boost::gil; @@ -25,7 +26,7 @@ BOOST_AUTO_TEST_CASE(channel_view_test) using channel_view_t = bg::channel_view_type::type; - static_assert(boost::is_same + static_assert(std::is_same < kth_channel_view_t, channel_view_t