Skip to content

Commit

Permalink
Sync DDC version e8b013f
Browse files Browse the repository at this point in the history
  • Loading branch information
SELF_COMMIT_TOKEN committed May 20, 2023
1 parent 694d4b2 commit a8843d6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions vendor/ddc/include/ddc/discrete_domain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class DiscreteDomain<>

// Construct a DiscreteDomain from a reordered copy of `domain`
template <class... ODDims>
explicit constexpr DiscreteDomain(DiscreteDomain<ODDims...> const& domain)
explicit constexpr DiscreteDomain([[maybe_unused]] DiscreteDomain<ODDims...> const& domain)
{
}

Expand All @@ -263,7 +263,7 @@ class DiscreteDomain<>

DiscreteDomain& operator=(DiscreteDomain&& x) = default;

constexpr bool operator==(DiscreteDomain const& other) const
constexpr bool operator==([[maybe_unused]] DiscreteDomain const& other) const
{
return true;
}
Expand Down Expand Up @@ -297,27 +297,29 @@ class DiscreteDomain<>
return {};
}

constexpr DiscreteDomain take_first(mlength_type n) const
constexpr DiscreteDomain take_first([[maybe_unused]] mlength_type n) const
{
return *this;
}

constexpr DiscreteDomain take_last(mlength_type n) const
constexpr DiscreteDomain take_last([[maybe_unused]] mlength_type n) const
{
return *this;
}

constexpr DiscreteDomain remove_first(mlength_type n) const
constexpr DiscreteDomain remove_first([[maybe_unused]] mlength_type n) const
{
return *this;
}

constexpr DiscreteDomain remove_last(mlength_type n) const
constexpr DiscreteDomain remove_last([[maybe_unused]] mlength_type n) const
{
return *this;
}

constexpr DiscreteDomain remove(mlength_type n1, mlength_type n2) const
constexpr DiscreteDomain remove(
[[maybe_unused]] mlength_type n1,
[[maybe_unused]] mlength_type n2) const
{
return *this;
}
Expand Down Expand Up @@ -366,7 +368,7 @@ using convert_type_seq_to_discrete_domain = typename ConvertTypeSeqToDiscreteDom
template <class... DDimsA, class... DDimsB>
constexpr auto remove_dims_of(
DiscreteDomain<DDimsA...> const& DDom_a,
DiscreteDomain<DDimsB...> const& DDom_b) noexcept
[[maybe_unused]] DiscreteDomain<DDimsB...> const& DDom_b) noexcept
{
using TagSeqA = detail::TypeSeq<DDimsA...>;
using TagSeqB = detail::TypeSeq<DDimsB...>;
Expand Down

0 comments on commit a8843d6

Please sign in to comment.