aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader/NodeTools.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-08-06 11:36:56 +0200
committer GitHub <noreply@github.com>2024-08-06 11:36:56 +0200
commit9f9c5844bfedc5e366a35cdba386027fb9f3a14a (patch)
tree2581b276b6b0f6f26d8e9d67755cf9cc21556f82 /src/openvic-simulation/dataloader/NodeTools.hpp
parent3c07aa7a890e82d1ba28bdc3bbb1a8f9896f25d1 (diff)
parent2314a9b6c48eab47cc776d08ef7d155f9bea423d (diff)
Merge pull request #184 from OpenVicProject/font-colour-codes
Load font colour codes
Diffstat (limited to 'src/openvic-simulation/dataloader/NodeTools.hpp')
-rw-r--r--src/openvic-simulation/dataloader/NodeTools.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/dataloader/NodeTools.hpp b/src/openvic-simulation/dataloader/NodeTools.hpp
index 945e5e8..79fb0ea 100644
--- a/src/openvic-simulation/dataloader/NodeTools.hpp
+++ b/src/openvic-simulation/dataloader/NodeTools.hpp
@@ -540,7 +540,7 @@ namespace OpenVic {
template<typename Key, typename Value, typename... MapArgs>
Callback<Value> auto map_callback(
- tsl::ordered_map<Key const*, Value, MapArgs...>& map, Key const* key, bool warn = false
+ tsl::ordered_map<Key, Value, MapArgs...>& map, Key key, bool warn = false
) {
return [&map, key, warn](Value value) -> bool {
if (map.emplace(key, std::move(value)).second) {