I thought it would be good idea to store a object of struct in a vector because I have seen it in a tutorial Tutorial but now I have a problem if I want to remove it from the vector. I want to make addressbook like contract.
I tried:
- delete itr_address->book[i] => because of a const variable in the struct this is not working
- itr_address->book.erase(itr_address->book.begin()+1) => some other error because of const