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 6a91c87 commit 3295f86
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 @@ -62,7 +62,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 3295f86

Please sign in to comment.