[vtk-developers] RFC: Compiler support, removing hacks for old compilers

Peter Karasev karasevpa at gmail.com
Tue Apr 14 11:18:21 EDT 2015


gcc 4.7.2 and VS2012 have pretty good support for it.

I've been using C++11 extensively the past year or so;  it makes a huge
difference for enabling decoupling of modules, simplified syntax, and easy
memory management.

decoupling:     std::function<returnType (args,...)>  is easier to
understand and more generally applicable than VTK Observers.

easy memory management:  std::unique_ptr, std::shared_ptr, std::weak_ptr
 are straightforward to use and don't have the limitation of requiring a
vtkObject base class.




On Mon, Mar 16, 2015 at 12:27 PM, Ben Boeckel <ben.boeckel at kitware.com>
wrote:

> On Mon, Mar 16, 2015 at 14:09:26 -0400, Sean McBride wrote:
> > The motivation being:
> >  - reduce cruft in the codebase
> >  - allow use of newer language features (C++11 eventually)
>
> FWIW, using C++11 support would bump to gcc 4.8 and VS2013 for
> (practical) purposes (gcc 4.4 and VS2010 have rudimentary support for
> it, but nothing I would rely on).
>
> > Thoughts?
>
> +1.
>
> --Ben
> _______________________________________________
> 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
>
>


-- 

_______________
Peter  Karasev
karasevpa at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150414/779db513/attachment.html>


More information about the vtk-developers mailing list