HF RL Explorer

Unused return value of insert should produce a compiler warning

Unused return value of insert should produce a compiler warning: a task in LegoFlow-SWE (Harbor dataset). Currently, calling insert on a component storage (e.g., WriteStorage<T ::insert(entity, component) ) returns a value that indicates whether the insertion succeeded or failed. However, it is…

The task

Currently, calling `insert` on a component storage (e.g., `WriteStorage<T>::insert(entity, component)`) returns a value that indicates whether the insertion succeeded or failed. However, it is easy to accidentally ignore this return value without any compiler warning. This leads to real bugs: code may assume that…

Part of Lego-X/LegoFlow-SWE.