static const -> static constexpr where we can.

Change-Id: I8a6d26a89c4377dd440fa6dcf23513b7556533fc
This commit is contained in:
Sameer Agarwal
2020-04-21 10:10:01 -07:00
parent 40b27482a2
commit 57cf20aa5d
12 changed files with 26 additions and 24 deletions
@@ -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 {