Skip to content

Commit

Permalink
Merge pull request #34 from nomic-ai/fix-context-set
Browse files Browse the repository at this point in the history
accept a const value ref in Context::set
  • Loading branch information
ochafik authored Jan 29, 2025
2 parents 33005c6 + 4a6c28a commit 1d5ddf1
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 1d5ddf1

Please sign in to comment.