From 12a47833bbe72d50271bde15c7579c1e801863c2 Mon Sep 17 00:00:00 2001 From: hop311 Date: Thu, 28 Dec 2023 15:16:41 +0000 Subject: Clock refactor + misc small fixes --- src/openvic-simulation/types/Vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/openvic-simulation/types') 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 - constexpr explicit operator vec2_t() { + constexpr explicit operator vec2_t() const { return { static_cast(x), static_cast(y) }; } -- cgit v1.2.3-56-ga3b1