void OrderBook::withdrawOrder( string& time){
orders.erase(std::remove(orders.begin(), orders.end(),[&time](auto
order){ return order.timestamp == time && order.username == "simuser"; }),
orders.end());
}
This is my code, auto before criteria is giving error "auto is now allowed here". What am I doing wrong.```
Aucun commentaire:
Enregistrer un commentaire