<p dir="ltr">Den 22 mars 2017 6:48 em skrev "David Gobbi" <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>>:<br>
><br>
> It doesn't look hard.  New AddObserver methods would be needed that take std::function<> as a parameter, and they'd have to store the "function" object and call it.  Overall, it would probably be simpler than the code that currently exists in vtkObject.h for adding observers.</p>
<p dir="ltr">Good to hear, I might have a go at it then.</p>
<p dir="ltr">Elvis</p>
<p dir="ltr">><br>
> On Wed, Mar 22, 2017 at 12:53 AM, Elvis Stansvik <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> With C++11 now required, would there be interest in an AddObserver<br>
>> version that takes a C++11 lambda? I've found myself wishing there was<br>
>> one a couple of times.<br>
>><br>
>> Anyone know off the top of their head how easy/hard that would be to add?<br>
>><br>
>> Cheers,<br>
>> Elvis<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers">http://markmail.org/search/?q=vtk-developers</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
>><br>
></p>