mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
[modernize] Convert kImpossibleValue to inline constexpr in types.h
Change-Id: Ide561296f1bbcc244dd655cf229d08582281b234
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user