Skip to content

Commit

Permalink
Merge pull request #1900 from OznOg/make_operator_arrow_const
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal authored Nov 14, 2024
2 parents a95d816 + 733e919 commit 164c354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/nonlinear/Values.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ namespace gtsam {
const_iterator_type it_;
deref_iterator(const_iterator_type it) : it_(it) {}
ConstKeyValuePair operator*() const { return {it_->first, *(it_->second)}; }
std::unique_ptr<ConstKeyValuePair> operator->() {
std::unique_ptr<ConstKeyValuePair> operator->() const {
return std::make_unique<ConstKeyValuePair>(it_->first, *(it_->second));
}
bool operator==(const deref_iterator& other) const {
Expand Down

0 comments on commit 164c354

Please sign in to comment.