[vtk-developers] AddObserver taking C++11 lambda?

David Gobbi david.gobbi at gmail.com
Wed Mar 22 13:47:48 EDT 2017


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.

On Wed, Mar 22, 2017 at 12:53 AM, Elvis Stansvik <
elvis.stansvik at orexplore.com> wrote:

> Hi all,
>
> With C++11 now required, would there be interest in an AddObserver
> version that takes a C++11 lambda? I've found myself wishing there was
> one a couple of times.
>
> Anyone know off the top of their head how easy/hard that would be to add?
>
> Cheers,
> Elvis
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20170322/83b23cc5/attachment.html>


More information about the vtk-developers mailing list