commit | 706a8765417ce3c0c1511e1614c8c26f550bbc94 | [log] [tgz] |
---|---|---|
author | Alex Stewart <alexs.mac@gmail.com> | Tue Jan 19 20:48:33 2016 +0000 |
committer | Alex Stewart <alexs.mac@gmail.com> | Thu Jan 21 19:30:58 2016 +0000 |
tree | fef5683b38a52e4c47bba1e27599e035c93376d2 | |
parent | cb467d83fe6ea8e082bfdf1f122b455c03f5eb56 [diff] |
Fix use of va_copy() if compiling with explicit C++ version < C++11. - va_copy() was defined in the C99 standard, but did not appear in the C++ standard until C++11. If the C++ standard is not specified, both GCC & Clang will define va_copy(), even though strictly speaking they should not. However, if the C++ standard is explicitly specified to something < C++11 (e.g. -std=c++03) then va_copy() will NOT be defined. - Now, if va_copy() is not defined, we either define our own version on non GCC/Clang compilers (as before for MSVC alone), and use the internal __va_copy() version on GCC & Clang, which does exist. Change-Id: I0224f7fa6aae060dee2287782b1cad767c244d3c
Please see ceres-solver.org for more information.
Ceres development happens on Gerrit, including both repository hosting and code reviews. The GitHub Repository is a continuously updated mirror which is primarily meant for issue tracking. Please see our Contributing to Ceres Guide for more details.
The upstream Gerrit repository is
https://ceres-solver.googlesource.com/ceres-solver