Skip to content

Commit

Permalink
accept a const value ref in Context::set
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre committed Jan 29, 2025
1 parent 6c51cdb commit e612a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/minja/minja.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ class Context : public std::enable_shared_from_this<Context> {
if (parent_) return parent_->contains(key);
return false;
}
virtual void set(const Value & key, Value & value) {
virtual void set(const Value & key, const Value & value) {
values_.set(key, value);
}
};
Expand Down

0 comments on commit e612a8c

Please sign in to comment.