[modernize] Convert kImpossibleValue to inline constexpr in types.h

Change-Id: Ide561296f1bbcc244dd655cf229d08582281b234
This commit is contained in:
Sameer Agarwal
2026-03-16 16:53:20 -07:00
parent ccd1198d72
commit 4bd55bd44c
+1 -1
View File
@@ -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,