mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
static const -> static constexpr where we can.
Change-Id: I8a6d26a89c4377dd440fa6dcf23513b7556533fc
This commit is contained in:
@@ -41,7 +41,7 @@ namespace ceres {
|
||||
namespace internal {
|
||||
|
||||
// The size of the cost functions we build.
|
||||
static const int kTestCostFunctionSize = 3;
|
||||
static constexpr int kTestCostFunctionSize = 3;
|
||||
|
||||
// A simple cost function: return ax + b.
|
||||
class LinearCostFunction : public CostFunction {
|
||||
|
||||
Reference in New Issue
Block a user