aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/types
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/types')
-rw-r--r--src/openvic-simulation/types/Vector.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/types/Vector.hpp b/src/openvic-simulation/types/Vector.hpp
index 89fe12f..5514cc3 100644
--- a/src/openvic-simulation/types/Vector.hpp
+++ b/src/openvic-simulation/types/Vector.hpp
@@ -20,7 +20,7 @@ namespace OpenVic {
constexpr vec2_t& operator=(vec2_t&&) = default;
template<typename S>
- constexpr explicit operator vec2_t<S>() {
+ constexpr explicit operator vec2_t<S>() const {
return { static_cast<S>(x), static_cast<S>(y) };
}