Commit 5a954bcb authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[status] fix getCount function

parent 8b4f4805
......@@ -147,8 +147,11 @@ public:
/*!
* \brief Returns the entity count for the given id.
*/
std::size_t getCount(const Id& id)
{ return count_[id.get()]; }
std::size_t getCount(const Id& id) const
{
const auto it = count_.find(id.get());
return it != count_.end() ? it->second : 0;
}
/*!
* \brief Returns the overall entity count.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment