<div dir="ltr">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.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 22, 2017 at 12:53 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
</blockquote></div><br></div>