linked_hash_map::[] doesn't work with non-copy-able value type |
||||
Issue description
When the Value type is a non-copyable class, code breaks at [].
It is because no moving insert() is provided but operate[]() uses insert():
Value& operator[](const key_type& key) {
return (*((this->insert(std::make_pair(key, Value()))).first)).second;
}
So compiler is forced to use copy constructor of Value.
,
May 26 2016
If I remember correctly, ours is simply a copy of the internal version so this should hopefully be easily fixable.
,
Dec 27 2017
,
Jan 2 2018
[It appears that a bunch of old cros issues bulk-added the "Infra" component recently, but they should probably be "Infra>Client>ChromeOS".]
,
May 17 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by danzh@chromium.org
, May 26 2016Owner: rch@chromium.org