diff --git a/lifetime/decltype_auto_and_explicit_types.md b/lifetime/decltype_auto_and_explicit_types.md index 1ff18d4..85abbde 100644 --- a/lifetime/decltype_auto_and_explicit_types.md +++ b/lifetime/decltype_auto_and_explicit_types.md @@ -62,8 +62,8 @@ class MapWrapper : private std::map { public: template const std::pair& find_if_or_throw(Predicate p) const { - auto item = std::find_if(cbegin(), cend(), p); - if (item == cend()) { + auto item = std::find_if(this->cbegin(), this->cend(), p); + if (item == this->cend()) { throw std::runtime_error("not found"); } return *item;