multiply_by_non_arithmetic_fail.cpp 442 B

1234567891011121314151617181920212223
  1. //
  2. // Copyright 2018 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/point.hpp>
  9. #include <type_traits>
  10. namespace gil = boost::gil;
  11. struct FakeMatrix {};
  12. int main()
  13. {
  14. gil::point<int> p1{2, 4};
  15. FakeMatrix m1;
  16. auto r1 = p1 * m1;
  17. auto r2 = m1 * p1;
  18. }