Skip to content

Commit

Permalink
Fixing constness (#49)
Browse files Browse the repository at this point in the history
* Fixing constness

* Update version to v1.0.10

Co-authored-by: Yahel-Nachum1 <Yahel.Nachum1@ibm.com>
  • Loading branch information
yahelnachum and Yahel-Nachum1 authored Jan 20, 2021
1 parent 12b5c6f commit 265a498
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION=1.0.9
VERSION=1.0.10
4 changes: 2 additions & 2 deletions targets/cpp/runtime/mapterm.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ namespace tosca {
}

protected:
typedef std::unordered_map<K*, V*, std::hash<K*>, std::equal_to<K*>, Allocator<std::pair<const K*, V*>>> tsmap;
typedef std::unordered_map<K*, V*, std::hash<K*>, std::equal_to<K*>, Allocator<std::pair<K* const, V*>>> tsmap;

tsmap map;

Expand All @@ -403,7 +403,7 @@ namespace tosca {
CMapTerm() : Ref(true), parent(Optional<CMapTerm>::nullopt)
{}

CMapTerm(Context& ctx, CMapTerm& parent): map(10, std::hash<K*>(), std::equal_to<K*>(), Allocator<std::pair<const K*, V*>>(ctx)), parent(make_optional<CMapTerm>(parent))
CMapTerm(Context& ctx, CMapTerm& parent): map(10, std::hash<K*>(), std::equal_to<K*>(), Allocator<std::pair<K* const, V*>>(ctx)), parent(make_optional<CMapTerm>(parent))
{}

/* Compact linked maps */
Expand Down

0 comments on commit 265a498

Please sign in to comment.