mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Update minimum required C++ version for Ceres to C++14
- Removes all workarounds for pre-C++14 versions - Removes '11' qualifier from C++ threading option and associated defines. - Fix missing inclusion of 'Multithreading' in reported Ceres components when C++ threading model is enabled. - Update Sphinx documentation to specify C++14 as minimum requirement. Change-Id: I706c8b367b3221e3c4d1a0aaf669a8f9c911e438
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#define CERES_PUBLIC_INTERNAL_NUMERIC_DIFF_H_
|
||||
|
||||
#include <cstring>
|
||||
#include <utility>
|
||||
|
||||
#include "Eigen/Dense"
|
||||
#include "Eigen/StdVector"
|
||||
@@ -437,7 +438,7 @@ struct EvaluateJacobianForParameterBlocks;
|
||||
|
||||
template <typename ParameterDims, int N, int... Ns, int ParameterIdx>
|
||||
struct EvaluateJacobianForParameterBlocks<ParameterDims,
|
||||
integer_sequence<int, N, Ns...>,
|
||||
std::integer_sequence<int, N, Ns...>,
|
||||
ParameterIdx> {
|
||||
template <NumericDiffMethodType method,
|
||||
int kNumResiduals,
|
||||
@@ -468,7 +469,7 @@ struct EvaluateJacobianForParameterBlocks<ParameterDims,
|
||||
}
|
||||
|
||||
return EvaluateJacobianForParameterBlocks<ParameterDims,
|
||||
integer_sequence<int, Ns...>,
|
||||
std::integer_sequence<int, Ns...>,
|
||||
ParameterIdx + 1>::
|
||||
template Apply<method, kNumResiduals>(functor,
|
||||
residuals_at_eval_point,
|
||||
@@ -481,7 +482,7 @@ struct EvaluateJacobianForParameterBlocks<ParameterDims,
|
||||
|
||||
// End of 'recursion'. Nothing more to do.
|
||||
template <typename ParameterDims, int ParameterIdx>
|
||||
struct EvaluateJacobianForParameterBlocks<ParameterDims, integer_sequence<int>,
|
||||
struct EvaluateJacobianForParameterBlocks<ParameterDims, std::integer_sequence<int>,
|
||||
ParameterIdx> {
|
||||
template <NumericDiffMethodType method, int kNumResiduals,
|
||||
typename CostFunctor>
|
||||
|
||||
Reference in New Issue
Block a user