#include "test_utility.h" #include #include using namespace std; using namespace CVD; constexpr ImageRef foo(ImageRef i) { i += ImageRef(3, 3); ImageRef j = i * 2; return j <<= 1; } template struct Fun { }; int main() { constexpr ImageRef i { 1, 2 }; cout << foo(i) << endl; Fun {}; Fun {}; CVD::Testing::assert_equal(ImageRef(16, 20), foo(i)); }