diff --git a/src/Point.h b/src/Point.h index a797dc46c..a61f8b1ba 100644 --- a/src/Point.h +++ b/src/Point.h @@ -1,17 +1,11 @@ // Copyright (c) 2010 LearnBoost #pragma once -#include - template class Point { public: T x, y; Point(T x=0, T y=0): x(x), y(y) {} Point(const Point&) = default; - Point& operator=(Point other) { - std::swap(x, other.x); - std::swap(y, other.y); - return *this; - } + Point& operator=(const Point&) = default; };