Blender Git Loki

Git Commits -> Revision 63ea8dd

Revision 63ea8dd by Sergey Sharybin (master)
March 13, 2015, 11:47 (GMT)
Initial compilation support with C++11 featureset enabled

This commit makes some preliminary fixes and tweaks aimed to make blender
compilable with C++11 feature set. This includes:

- Build system attribute to enable C++11 featureset.

It's for sure default OFF, but easy to enable to have a play around with
it and make sure all the stuff is compilable before we go C++11 for real.

- Changes in Compositor to use non-named cl_int structure fields.

This is because __STRICT_ANSI__ is defined by default by GCC and OpenCL
does not use named fields in this case.

- Changes to TYPE_CHECK() related on lack of typeof() in C++11

This uses decltype() instead with some trickery to make sure returned type
is not a reference.

- Changes for auto_ptr in Freestyle

This actually conditionally switches between auto_ptr and unique_ptr since
auto_ptr is deprecated in C++11. Seems to be not strictly needed but still
nice to be ready for such an update anyway/

This all based on changes form depsgraph_refactor branch apart from the weird
changes which were made in order to support MinGW compilation. Those parts of
change would need to be carefully reviewed again after official move to gcc49
in MinGW.

Tested on Linux with GCC-4.7 and Clang-3.5, other platforms are not tested and
likely needs some more tweaks.

Reviewers: campbellbarton, juicyfruit, mont29, lukastoenne, psy-fi, kjym3

Differential Revision: https://developer.blender.org/D1089

Commit Details:

Full Hash: 63ea8dd156b39eb57b73a953f5ac9ae54b7a447a
Parent Commit: 278871d
Lines Changed: +179, -67

1 Added Path:

/source/blender/freestyle/intern/view_map/AutoPtrHelper.h (+60, -0) (View)

17 Modified Paths:

/build_files/scons/tools/btools.py (+5, -2) (Diff)
/CMakeLists.txt (+14, -0) (Diff)
/intern/cycles/util/util_types.h (+16, -2) (Diff)
/SConstruct (+7, -0) (Diff)
/source/blender/blenlib/BLI_compiler_compat.h (+12, -0) (Diff)
/source/blender/compositor/intern/COM_OpenCLDevice.cpp (+2, -2) (Diff)
/source/blender/freestyle/CMakeLists.txt (+1, -0) (Diff)
/source/blender/freestyle/intern/view_map/ArbitraryGridDensityProvider.cpp (+7, -7) (Diff)
/source/blender/freestyle/intern/view_map/ArbitraryGridDensityProvider.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.cpp (+6, -6) (Diff)
/source/blender/freestyle/intern/view_map/AverageAreaGridDensityProvider.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/GridDensityProvider.h (+5, -4) (Diff)
/source/blender/freestyle/intern/view_map/HeuristicGridDensityProviderFactory.cpp (+16, -16) (Diff)
/source/blender/freestyle/intern/view_map/HeuristicGridDensityProviderFactory.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/Pow23GridDensityProvider.cpp (+6, -6) (Diff)
/source/blender/freestyle/intern/view_map/Pow23GridDensityProvider.h (+4, -4) (Diff)
/source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp (+6, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021