Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / core / point / multiply_by_non_arithmetic_fail.cpp
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
10 #include <type_traits>
11
12 namespace gil = boost::gil;
13
14 struct FakeMatrix {};
15
16 int main()
17 {
18     gil::point<int> p1{2, 4};
19
20     FakeMatrix m1;
21     auto r1 = p1 * m1;
22     auto r2 = m1 * p1;
23 }