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:
Sameer Agarwal
2022-02-10 15:15:11 -08:00
parent 44039af2cb
commit 9c5f29d46d
8 changed files with 115 additions and 97 deletions
+2 -1
View File
@@ -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;