| 195 | |
| 196 | template<typename T> |
| 197 | Rectangle<T> Rectangle<T>::operator/(const T value) const |
| 198 | { |
| 199 | try |
| 200 | { |
| 201 | return Rectangle<T>{T(x / value), T(y / value), T(width / value), T(height / value)}; |
| 202 | } |
| 203 | catch (const std::exception& e) |
| 204 | { |
| 205 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 206 | return Rectangle<T>{}; |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | COMPILE_TEMPLATE_BASIC_TYPES_STRUCT(Rectangle); |
| 211 |