Fix building (2.6.3) with:
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
Target: x86_64-unknown-freebsd11.0
Error:
toonz.cpp:358:20: error: expected ';' after expression
std::mt19937_64 engine(seed);
^
;
toonz.cpp:358:10: error: no member named 'mt19937_64' in namespace 'std'
std::mt19937_64 engine(seed);
~~~~~^
toonz.cpp:358:21: error: use of undeclared identifier 'engine'
std::mt19937_64 engine(seed);
^
toonz.cpp:363:36: error: expected ';' after expression
std::bernoulli_distribution rbern(g[x] * norm_const);
^
;
toonz.cpp:363:14: error: no member named 'bernoulli_distribution' in namespace 'std'
std::bernoulli_distribution rbern(g[x] * norm_const);
~~~~~^
toonz.cpp:363:37: error: use of undeclared identifier 'rbern'
std::bernoulli_distribution rbern(g[x] * norm_const);
^
toonz.cpp:364:22: error: use of undeclared identifier 'engine'
n[x] = rbern(engine) ? std::numeric_limits<uchar>::max() : 0;
^
toonz.cpp:656:30: error: implicit instantiation of undefined template
'std::__1::array<cv::point_\<int>, 4>'
std::array<cv::point, 4=""> pts;
^
/usr/include/c++/v1/__tuple:116:65: note: template is declared here
template <class _tp,="" size_t="" _size=""> struct _LIBCPP_TYPE_VIS_ONLY array;
^
toonz.cpp:846:30: error: implicit instantiation of undefined template
'std::__1::array<float, 5="">'
std::array<float, 5=""> const amp = {
^
/usr/include/c++/v1/__tuple:116:65: note: template is declared here
template <class _tp,="" size_t="" _size=""> struct _LIBCPP_TYPE_VIS_ONLY array;
^
9 errors generated.
*** Error code 1</class></float,></float,></class></cv::point,></cv::point_\<int></uchar>
Thanks ! Checked into svn now.