diff --git a/cpp/include/idevice++/option.hpp b/cpp/include/idevice++/option.hpp index be25570..ccc9f09 100644 --- a/cpp/include/idevice++/option.hpp +++ b/cpp/include/idevice++/option.hpp @@ -117,7 +117,7 @@ template class Option { // map template - auto map(F&& f) const -> Option::type> { + auto map(F&& f) const& -> Option::type> { using U = typename std::decay::type; if (has_) { return Option(f(*ptr()));