auto entry = std::find_if(ApiWrappers::api_handlers.begin(), ApiWrappers::api_handlers.end(),
[&](ApiWrapper& handler) -> bool {
// ApiWrapper& handler members are all NULL for some reason, even though ApiWrappers is filled with initialized elements
return (handler->address == target_addr);
}
);
Why do all iterators point to empty structs, even though the vector is filled with defined elements?
- Can you show a minimal compileable example?
- What library is this?
- The "->" operator usually doesn't apply to a non-pointer, so it must be overloaded in some way -- how?