Skip to content

KeyedContainer move constructor does not preserve object version

This code fails:

using ObjType = KeyedContainer<KeyedObject<std::size_t>>;

ObjType src;
src.setVersion( 42 );

ObjType dst = std::move( src );
assert( dst.version == 42 );
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information