mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-31 01:20:38 +08:00
Use compiler attributes instead of [[deprecated]]
This change is needed because compiler attributes and c++ annotations like [[deprecated]] do not mix well and we need that for our public API. https://github.com/ceres-solver/ceres-solver/issues/749 Change-Id: I79eda795f2912f9af9ab36ee24b8428b47104743
This commit is contained in:
@@ -305,7 +305,8 @@ class CERES_EXPORT GradientProblemSolver {
|
||||
int num_parameters = -1;
|
||||
|
||||
// Dimension of the tangent space of the problem.
|
||||
[[deprecated("Use num_tangent_parameters.")]] int num_local_parameters = -1;
|
||||
CERES_DEPRECATED_WITH_MSG("Use num_tangent_parameters.")
|
||||
int num_local_parameters = -1;
|
||||
|
||||
// Dimension of the tangent space of the problem.
|
||||
int num_tangent_parameters = -1;
|
||||
|
||||
Reference in New Issue
Block a user