aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility/Getters.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-02-19 21:36:19 +0100
committer hop311 <hop3114@gmail.com>2024-02-19 21:56:05 +0100
commite5a7ddfa0aeb8f62e2b53f111122c1c51c03dabc (patch)
treed55471ba1dd0a487e14e2ab18a3c4e3e2d0140ad /src/openvic-simulation/utility/Getters.hpp
parent35e5f7828a41736194362186ad4f946fad5964d1 (diff)
Fixed point rounding functions and sources cleanup
Diffstat (limited to 'src/openvic-simulation/utility/Getters.hpp')
-rw-r--r--src/openvic-simulation/utility/Getters.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/utility/Getters.hpp b/src/openvic-simulation/utility/Getters.hpp
index fa76e74..0a6917c 100644
--- a/src/openvic-simulation/utility/Getters.hpp
+++ b/src/openvic-simulation/utility/Getters.hpp
@@ -121,7 +121,7 @@ ACCESS:
#define PROPERTY_RW_FULL(NAME, GETTER_NAME, SETTER_NAME, ACCESS) \
PROPERTY_FULL(NAME, GETTER_NAME, ACCESS) \
public: \
- void SETTER_NAME(decltype(NAME) new_##NAME) { \
+ constexpr void SETTER_NAME(decltype(NAME) new_##NAME) { \
NAME = new_##NAME; \
} \
ACCESS: