pixel_reference_is_mutable.cpp 976 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // Copyright 2019 Mateusz Loskot <mateusz at loskot dot net>
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. #include <boost/gil.hpp>
  9. #include <boost/mp11.hpp>
  10. #include "test_fixture.hpp"
  11. namespace gil = boost::gil;
  12. using namespace boost::mp11;
  13. int main()
  14. {
  15. static_assert(mp_all_of
  16. <
  17. gil::test::fixture::pixel_typedefs,
  18. gil::pixel_reference_is_mutable
  19. >::value,
  20. "pixel_reference_is_mutable should yield true for all core pixel typedefs");
  21. static_assert(!mp_all_of
  22. <
  23. mp_transform
  24. <
  25. gil::test::fixture::nested_type,
  26. gil::test::fixture::representative_pixel_types
  27. >,
  28. gil::pixel_reference_is_mutable
  29. >::value,
  30. "pixel_reference_is_mutable should yield true for some representative core pixel types");
  31. }