From 4bd55bd44c6458b647e62dadaa8bd3c69dad92a0 Mon Sep 17 00:00:00 2001 From: Sameer Agarwal Date: Mon, 16 Mar 2026 16:53:20 -0700 Subject: [PATCH] [modernize] Convert kImpossibleValue to inline constexpr in types.h Change-Id: Ide561296f1bbcc244dd655cf229d08582281b234 --- include/ceres/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ceres/types.h b/include/ceres/types.h index be8e1d248..4b4f16a99 100644 --- a/include/ceres/types.h +++ b/include/ceres/types.h @@ -472,7 +472,7 @@ enum CovarianceAlgorithmType { // before passing them to user code. If on return an element of the // array still contains this value, we will assume that the user code // did not write to that memory location. -const double kImpossibleValue = 1e302; +inline constexpr double kImpossibleValue = 1e302; CERES_EXPORT const char* LinearSolverTypeToString(LinearSolverType type); CERES_EXPORT bool StringToLinearSolverType(std::string value,