Skip to content

Commit

Permalink
Add missing DDC_BUILD_DEPRECATED_CODE guards
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Jan 3, 2025
1 parent 0829ad4 commit f66de69
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion include/ddc/experimental/single_discretization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ class SingleDiscretization : SingleDiscretizationBase
public:
using continuous_dimension_type = CDim;

#if defined(DDC_BUILD_DEPRECATED_CODE)
using continuous_element_type
[[deprecated("Use ddc::Coordinate<continuous_dimension_type> instead.")]]
= Coordinate<CDim>;

#endif

using discrete_dimension_type = SingleDiscretization;

Expand Down
3 changes: 2 additions & 1 deletion include/ddc/non_uniform_point_sampling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ class NonUniformPointSampling : detail::NonUniformPointSamplingBase
public:
using continuous_dimension_type = CDim;

#if defined(DDC_BUILD_DEPRECATED_CODE)
using continuous_element_type
[[deprecated("Use ddc::Coordinate<continuous_dimension_type> instead.")]]
= Coordinate<CDim>;

#endif

using discrete_dimension_type = NonUniformPointSampling;

Expand Down
3 changes: 2 additions & 1 deletion include/ddc/periodic_sampling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ class PeriodicSampling : detail::PeriodicSamplingBase
public:
using continuous_dimension_type = CDim;

#if defined(DDC_BUILD_DEPRECATED_CODE)
using continuous_element_type
[[deprecated("Use ddc::Coordinate<continuous_dimension_type> instead.")]]
= Coordinate<CDim>;

#endif

using discrete_dimension_type = PeriodicSampling;

Expand Down
3 changes: 2 additions & 1 deletion include/ddc/uniform_point_sampling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ class UniformPointSampling : detail::UniformPointSamplingBase
public:
using continuous_dimension_type = CDim;

#if defined(DDC_BUILD_DEPRECATED_CODE)
using continuous_element_type
[[deprecated("Use ddc::Coordinate<continuous_dimension_type> instead.")]]
= Coordinate<CDim>;

#endif

using discrete_dimension_type = UniformPointSampling;

Expand Down

0 comments on commit f66de69

Please sign in to comment.