[vtk-developers] Introducing (optional) C++11 features in VTK
    Sean McBride 
    sean at rogue-research.com
       
    Mon Aug 18 17:05:38 EDT 2014
    
    
  
On Mon, 18 Aug 2014 16:50:12 -0400, Sean McBride said:
>nullptr is another one that can be made to work even on older compilers
>with some #define glue.
>
>Instead of creating a 'VTK_OVERRIDE', we could also use 'override' as if
>we required C++11 and "#define override /* nothing */" as appropriate. 
>Then when C++11 really is the minimun requirement no big find/replace is
>required.  Just a thought.
I hit send too fast...
I also wanted to suggest looking at the clang-modernize tool, which is "a standalone tool used to automatically convert C++ code written against old standards to use features of the newest C++ standard".
<http://clang.llvm.org/extra/clang-modernize.html>
Specifically, it can be used to automatically add 'override' and convert to 'nullptr':
<http://clang.llvm.org/extra/AddOverrideTransform.html>
<http://clang.llvm.org/extra/UseNullptrTransform.html>
Cheers,
-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada
    
    
More information about the vtk-developers
mailing list