[Development] RFC: RAII for property changes

Marc Mutz marc.mutz at kdab.com
Wed Apr 15 21:34:57 CEST 2015


On Wednesday 15 April 2015 21:05:39 Keith Gardner wrote:
> Would something like this be better?
> 
> std::function

No, a std::function in general allocates memory and even if it uses the small 
object optimisation, the call to the lambda will still be indirect.

Thanks,
Marc

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts



More information about the Development mailing list