| 106 | |
| 107 | template<typename T> |
| 108 | Point<T> Point<T>::operator+(const Point<T>& point) const |
| 109 | { |
| 110 | try |
| 111 | { |
| 112 | return Point<T>{T(x + point.x), T(y + point.y)}; |
| 113 | } |
| 114 | catch (const std::exception& e) |
| 115 | { |
| 116 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 117 | return Point<T>{}; |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | template<typename T> |
| 122 | Point<T>& Point<T>::operator+=(const T value) |