diff --git a/src/include/frag.h b/src/include/frag.h index aeb824fa657..14afb948781 100644 --- a/src/include/frag.h +++ b/src/include/frag.h @@ -538,7 +538,7 @@ class fragset_t { std::set _set; public: - std::set &get() { return _set; } + const std::set &get() const { return _set; } std::set::iterator begin() { return _set.begin(); } std::set::iterator end() { return _set.end(); } @@ -578,7 +578,7 @@ public: } }; -inline std::ostream& operator<<(std::ostream& out, fragset_t& fs) +inline std::ostream& operator<<(std::ostream& out, const fragset_t& fs) { return out << "fragset_t(" << fs.get() << ")"; }