Try to fix clashes caused by ERROR, WARNING etc. as variables.
[dcpomatic.git] / src / lib / position.h
index 8768bf5a8ed007625fe1b17462f3989077337aa6..f9bd0987cdb5ed3e2688ed63bf0d5cfdbbf1597d 100644 (file)
@@ -43,4 +43,11 @@ public:
        T y;
 };
 
+template<class T>
+Position<T>
+operator+ (Position<T> const & a, Position<T> const & b)
+{
+       return Position<T> (a.x + b.x, a.y + b.y);
+}
+
 #endif