[EOSIO/eos] eosio’s multi_index breaks when moved (#4577)

exchange had this:
«`
typedef eosio::multi_index exaccounts;

flat_map exaccounts_cache;
«`

When something was added to the cache, it caused a muti_index to move. This caused the multi_index to not recognize its iterators.

Options:
* Fix multi_index so it moves without breaking
* Delete multi_index’s move constructor and move assignment so contracts which hit this case won’t compile

Добавить комментарий