Skip to content

Commit

Permalink
Add [[no_unique_address]] to take.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstone committed Nov 29, 2023
1 parent b265986 commit fb23eca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/containers/take.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct counted_sentinel {
}

private:
Sentinel m_sentinel;
[[no_unique_address]] Sentinel m_sentinel;
};

template<typename Iterator, typename Count>
Expand Down Expand Up @@ -139,8 +139,8 @@ struct counted_iterator : iterator_category_base<Iterator> {
}

private:
Iterator m_it;
Count m_count;
[[no_unique_address]] Iterator m_it;
[[no_unique_address]] Count m_count;
};

template<typename Iterator, typename Count>
Expand Down Expand Up @@ -172,7 +172,7 @@ struct random_access_counted_iterator {
}

private:
Iterator m_it;
[[no_unique_address]] Iterator m_it;
};

template<extra_elements_policy policy, range Range, bounded::bounded_integer Count> requires(numeric_traits::min_value<Count> >= 0_bi)
Expand Down

0 comments on commit fb23eca

Please sign in to comment.