@@ -16,8 +16,8 @@ namespace lui {
1616*/
1717template <typename Val>
1818struct Point {
19- static_assert (std::is_integral_v<Val> || std::is_floating_point_v<Val>,
20- " Point value type must be integral or floating point" );
19+ static_assert (std::is_integral_v<Val> || std::is_floating_point_v<Val>,
20+ " Point value type must be integral or floating point" );
2121
2222 /* * X coordinate */
2323 Val x {};
@@ -26,13 +26,12 @@ struct Point {
2626
2727 Point () = default ;
2828
29- template <typename TX , typename TY ,
30- typename = std::enable_if_t <
31- (std::is_integral_v<TX > || std::is_floating_point_v<TX >) &&
32- (std::is_integral_v<TY > || std::is_floating_point_v<TY >)>>
33- Point (TX x_val, TY y_val) noexcept
34- : x(static_cast <Val>(x_val)),
35- y (static_cast <Val>(y_val)) {}
29+ template <typename TX , typename TY ,
30+ typename = std::enable_if_t <
31+ (std::is_integral_v<TX > || std::is_floating_point_v<TX >) && (std::is_integral_v<TY > || std::is_floating_point_v<TY >)>>
32+ Point (TX x_val, TY y_val) noexcept
33+ : x (static_cast <Val> (x_val)),
34+ y (static_cast <Val> (y_val)) {}
3635
3736 /* * Convert this point to another value type.
3837 i.e. int to float
0 commit comments