diff options
author | Hop311 <Hop3114@gmail.com> | 2024-06-06 21:29:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-06 21:29:15 +0200 |
commit | f5d173e88a49a1a9556860063aef1aa287925cfd (patch) | |
tree | f3a9a107f1bd4b6b6d8035a96ac659bcc15f176b /src/openvic-simulation/dataloader/NodeTools.hpp | |
parent | e286cfef29d7c431ba33cd77283e838e6fba05d2 (diff) | |
parent | 37cdd775ac738b2a1264e32471385376e5a34f3a (diff) |
Merge pull request #161 from OpenVicProject/const-mutable
Province const/mutable separation + State cleanup
Diffstat (limited to 'src/openvic-simulation/dataloader/NodeTools.hpp')
-rw-r--r-- | src/openvic-simulation/dataloader/NodeTools.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/dataloader/NodeTools.hpp b/src/openvic-simulation/dataloader/NodeTools.hpp index 0bb4d5b..92682e7 100644 --- a/src/openvic-simulation/dataloader/NodeTools.hpp +++ b/src/openvic-simulation/dataloader/NodeTools.hpp @@ -473,8 +473,8 @@ namespace OpenVic { } template<typename T> - Callback<T const&> auto vector_callback_pointer(std::vector<T const*>& vec) { - return [&vec](T const& val) -> bool { + Callback<T&> auto vector_callback_pointer(std::vector<T*>& vec) { + return [&vec](T& val) -> bool { vec.emplace_back(&val); return true; }; |