C++11 Migration

From Synfig Studio :: Documentation
Jump to: navigation, search
m (C++11 compliance or Migration)
m (Enable C++ Support: mandatory --> optional)
Line 10: Line 10:
 
==Enable C++ Support==
 
==Enable C++ Support==
 
* DONE : ADD to both {{literal|synfig-core/m4/}} and {{literal|synfig-studio/m4/}} the {{literal|ax_cxx_compile_stdcxx.m4}} {{literal|and ax_cxx_compile_stdcxx_11.m4}} directives from https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
 
* DONE : ADD to both {{literal|synfig-core/m4/}} and {{literal|synfig-studio/m4/}} the {{literal|ax_cxx_compile_stdcxx.m4}} {{literal|and ax_cxx_compile_stdcxx_11.m4}} directives from https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
* DONE : synfig-core and synfig-studio / configure.ac : AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])
+
* DONE : synfig-core and synfig-studio / configure.ac : AX_CXX_COMPILE_STDCXX_11([noext],[optional])
  
 
==Fix Code to be compliant==
 
==Fix Code to be compliant==

Revision as of 17:13, 21 January 2016

Have a look to C++11Support branch for progress.

C++11 compliance or Migration

  • TODO

Enable C++ Support

Fix Code to be compliant

  • DONE : replace isnan , isinf by std::isnan , std::isinf
  • replace NULL/0 by nullptr (BOOST MACRO)
  • update sigc++
  • FIXED : "lvalue required as unary '&' operand" errors (info [1] [2] [3] )

Useful information about C++11 Migration