meta: minor changes

This commit is contained in:
Michele Caini
2023-06-30 14:09:34 +02:00
parent c993388e5c
commit 9d45825947

View File

@@ -1851,8 +1851,7 @@ private:
* @return True in case of success, false otherwise.
*/
inline bool meta_sequence_container::resize(const size_type sz) {
void *elem = storage.data();
return elem && resize_fn(elem, sz);
return (storage.policy() != any_policy::cref) && resize_fn(storage.data(), sz);
}
/**