C++ non-const lvalue reference cannot bind to a temporary

NoSuchKey