HomePhorge

Fix DeluxeContext::registerSensorValue() for bool

Referenced Files
None
Subscribers
None

Description

Fix DeluxeContext::registerSensorValue() for bool

Adding explicit return type to the lambda expression makes the implementation more robust for specialized iterators for bool (e.g., std::vector<bool> stores bits with the corresponding iterator providing bit references rather than bool values and the explicit return type makes sure a necessary conversion is done implicitly).

Details

Provenance
Dávid JuhászAuthored on Apr 29 2019, 8:46 PM
juhaszPushed on Apr 29 2019, 9:02 PM
Parents
R20:73b56688312f: Fix TypeToken for bool to match TypeNumber
Branches
Unknown
Tags
Unknown

Event Timeline

Dávid Juhász <juhasz.david.scholar@gmail.com> committed R20:7e18d0b1275d: Fix DeluxeContext::registerSensorValue() for bool (authored by Dávid Juhász <juhasz.david.scholar@gmail.com>).Apr 29 2019, 8:46 PM