diff options
author | hop311 <hop3114@gmail.com> | 2024-08-29 20:54:58 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-08-29 20:54:58 +0200 |
commit | 172ad2fcc34b567eab9eca1f907cd99574fa031e (patch) | |
tree | bedfa97590a31eb5f2871b7921e48423d1ddabde /src/openvic-simulation/types | |
parent | 5813948cd3ed6432de374664650d68afbff71915 (diff) |
Remove unnecessary asserts + make `vec2_t(T val)` constructor explicitremove-asserts
Diffstat (limited to 'src/openvic-simulation/types')
-rw-r--r-- | src/openvic-simulation/types/Vector.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/types/Vector.hpp b/src/openvic-simulation/types/Vector.hpp index 7ed952a..d318c2f 100644 --- a/src/openvic-simulation/types/Vector.hpp +++ b/src/openvic-simulation/types/Vector.hpp @@ -14,7 +14,7 @@ namespace OpenVic { T x, y; constexpr vec2_t() = default; - constexpr vec2_t(T new_val) : x { new_val }, y { new_val } {} + explicit constexpr vec2_t(T new_val) : x { new_val }, y { new_val } {} constexpr vec2_t(T new_x, T new_y) : x { new_x }, y { new_y } {} constexpr vec2_t(vec2_t const&) = default; |