Skip to content

Commit 1d5ddf1

Browse files
authored
Merge pull request #34 from nomic-ai/fix-context-set
accept a const value ref in Context::set
2 parents 33005c6 + 4a6c28a commit 1d5ddf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/minja/minja.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ class Context : public std::enable_shared_from_this<Context> {
628628
if (parent_) return parent_->contains(key);
629629
return false;
630630
}
631-
virtual void set(const Value & key, Value & value) {
631+
virtual void set(const Value & key, const Value & value) {
632632
values_.set(key, value);
633633
}
634634
};

0 commit comments

Comments
 (0)