aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-26 02:51:09 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:52 +0100
commitf65fa66940b78a3953e5dffa72ca384803957ad3 (patch)
treef325ed9c3a4ec1ab06bdd41cb8da695b76db46ae
parenta5e90892da7de8f10dae70b75f1fb51587eaf8db (diff)
downloadusdx-f65fa66940b78a3953e5dffa72ca384803957ad3.tar.gz
usdx-f65fa66940b78a3953e5dffa72ca384803957ad3.tar.xz
usdx-f65fa66940b78a3953e5dffa72ca384803957ad3.zip
utils/point: addition/subtraction should only be possible with same type
-rw-r--r--src/utils/point.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/point.hpp b/src/utils/point.hpp
index f897dbf6..40660941 100644
--- a/src/utils/point.hpp
+++ b/src/utils/point.hpp
@@ -76,28 +76,28 @@ namespace usdx
}
- Point& operator+=(const Point &other)
+ Point<T>& operator+=(const Point<T> &other)
{
x += other.x;
y += other.y;
return *this;
}
- Point& operator-=(const Point &other)
+ Point<T>& operator-=(const Point<T> &other)
{
x -= other.x;
y -= other.y;
return *this;
}
- const Point operator+(const Point &other) const
+ const Point<T> operator+(const Point<T> &other) const
{
Point<T> result(*this);
result += other;
return result;
}
- const Point operator-(const Point &other) const
+ const Point<T> operator-(const Point<T> &other) const
{
Point<T> result(*this);
result -= other;