| 129 | |
| 130 | template<typename T> |
| 131 | std::string Rectangle<T>::toString() const |
| 132 | { |
| 133 | try |
| 134 | { |
| 135 | return '[' + std::to_string(x) + ", " + std::to_string(y) + ", " + std::to_string(width) + ", " + std::to_string(height) + ']'; |
| 136 | } |
| 137 | catch (const std::exception& e) |
| 138 | { |
| 139 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 140 | return ""; |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | template<typename T> |
| 145 | Rectangle<T>& Rectangle<T>::operator*=(const T value) |