blender/intern/cycles
Sergey Sharybin 63ea8dd156 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
2015-03-13 16:47:40 +05:00
..
app Cycles: Fix compilation error of Cycles standalone with Libmv disabled 2015-02-14 21:33:14 +05:00
blender Partial fix for T43967: Background is wrong in 2.74 2015-03-12 18:24:53 +05:00
bvh Fix T43484: Motion blur fails in certain circumstances 2015-03-09 14:15:35 +05:00
cmake Cycles: Post-reintegration tweaks to ensure things do compile 2015-01-01 01:31:08 +05:00
device Cycles: Cleanup for indentation in device_cpu.cpp 2015-02-19 19:05:04 +05:00
doc Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
kernel Cycles: Optimization for CMJ in CUDA kernels 2015-03-13 12:38:14 +05:00
render Cycles: Make Background MIS building threaded 2015-03-12 13:50:11 +01:00
subd Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util Initial compilation support with C++11 featureset enabled 2015-03-13 16:47:40 +05:00
CMakeLists.txt Cycles: Post-reintegration tweaks to ensure things do compile 2015-01-01 01:31:08 +05:00
SConscript Cycles: Post-reintegration tweaks to ensure things do compile 2015-01-01 01:31:08 +05:00