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 );
This code fails:
using ObjType = KeyedContainer<KeyedObject<std::size_t>>;
ObjType src;
src.setVersion( 42 );
ObjType dst = std::move( src );
assert( dst.version == 42 );