Skip to content

Commit

Permalink
C++ Deprecation in addition to Doxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
jbigot committed Mar 21, 2022
1 parent 5f8e497 commit d4e47b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/ddc/uniform_discretization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class UniformDiscretization
*
* @deprecated use the version accepting a vector for n instead
*/
constexpr UniformDiscretization(rcoord_type a, rcoord_type b, std::size_t n)
[[deprecated(
"Use the version accepting a vector for n "
"instead.")]] constexpr UniformDiscretization(rcoord_type a, rcoord_type b, std::size_t n)
: m_origin(a)
, m_step((b - a) / (n - 1))
{
Expand Down

0 comments on commit d4e47b6

Please sign in to comment.