#ifdef _MSC_VER
#pragma warning(disable : 4244) // conversion from 'gil::image<V,Alloc>::coord_t' to 'int', possible loss of data (visual studio compiler doesn't realize that the two types are the same)
#pragma warning(disable : 4503) // decorated name length exceeded, name was truncated
+#pragma warning(disable : 4701) // potentially uninitialized local variable 'result' used in boost/crc.hpp
#endif
+#include <boost/gil.hpp>
#include <boost/gil/extension/dynamic_image/dynamic_image_all.hpp>
#include <boost/core/ignore_unused.hpp>
#include <boost/crc.hpp>
-#include <boost/mpl/vector.hpp>
+#include <boost/mp11.hpp>
#include <ios>
#include <iostream>
#pragma warning(disable:4127) //conditional expression is constant
#endif
-
// When BOOST_GIL_GENERATE_REFERENCE_DATA is defined, the reference data is generated and saved.
// When it is undefined, regression tests are checked against it
//#define BOOST_GIL_GENERATE_REFERENCE_DATA
// A quick test whether a view is homogeneous
template <typename Pixel>
-struct pixel_is_homogeneous : public mpl::true_ {};
+struct pixel_is_homogeneous : public std::true_type {};
template <typename P, typename C, typename L>
-struct pixel_is_homogeneous<packed_pixel<P,C,L> > : public mpl::false_ {};
+struct pixel_is_homogeneous<packed_pixel<P,C,L> > : public std::false_type {};
template <typename View>
struct view_is_homogeneous : public pixel_is_homogeneous<typename View::value_type> {};
private:
template <typename Img> void basic_test(const string& prefix);
template <typename View> void view_transformations_test(const View& img_view, const string& prefix);
- template <typename View> void homogeneous_view_transformations_test(const View& img_view, const string& prefix, mpl::true_);
- template <typename View> void homogeneous_view_transformations_test(const View& img_view, const string& prefix, mpl::false_)
+ template <typename View> void homogeneous_view_transformations_test(const View& img_view, const string& prefix, std::true_type);
+ template <typename View> void homogeneous_view_transformations_test(const View& img_view, const string& prefix, std::false_type)
{
boost::ignore_unused(img_view);
boost::ignore_unused(prefix);
}
template <typename View>
-void image_test::homogeneous_view_transformations_test(const View& img_view, const string& prefix, mpl::true_) {
+void image_test::homogeneous_view_transformations_test(const View& img_view, const string& prefix, std::true_type) {
check_view(nth_channel_view(img_view,0),prefix+"0th_n_channel");
}
{
using any_image_t = any_image
<
- mpl::vector
+ mp11::mp_list
<
gray8_image_t,
bgr8_image_t,
using bgr121_ref_t = bit_aligned_pixel_reference
<
boost::uint8_t,
- mpl::vector3_c<int, 1, 2, 1>,
+ mp11::mp_list_c<int, 1, 2, 1>,
bgr_layout_t,
true
> const;
<
derived_view_type
<
- cmyk8c_planar_step_view_t, use_default, rgb_layout_t, mpl::false_, use_default, mpl::false_
+ cmyk8c_planar_step_view_t, use_default, rgb_layout_t, std::false_type, use_default, std::false_type
>::type,
rgb8c_step_view_t
>::value, "");