Skip to content

Commit

Permalink
Use C++17 attribute for deprecated types
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Aug 6, 2023
1 parent 3332319 commit c5cd3f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/cantera/base/ct_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const double Tiny = 1.e-20;
* This is used mostly to assign concentrations and mole fractions to species.
* @deprecated To be removed after %Cantera 3.0
*/
typedef map<string, double> compositionMap;
typedef map<string, double> compositionMap [[deprecated("replaceable by Composition")]];

//! Map from string names to doubles. Used for defining species mole/mass
//! fractions, elemental compositions, and reaction stoichiometries.
Expand All @@ -186,10 +186,10 @@ typedef map<string, double> Composition;
//! Turn on the use of stl vectors for the basic array type within cantera
//! Vector of doubles.
//! @deprecated To be removed after %Cantera 3.0
typedef vector<double> vector_fp;
typedef vector<double> vector_fp [[deprecated("replaceable by vector<double>")]];
//! Vector of ints
//! @deprecated To be removed after %Cantera 3.0
typedef vector<int> vector_int;
typedef vector<int> vector_int [[deprecated("replaceable by vector<int>")]];

//! index returned by functions to indicate "no position"
const size_t npos = static_cast<size_t>(-1);
Expand Down

0 comments on commit c5cd3f2

Please sign in to comment.