Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[FIX] Cyclic requires
  • Loading branch information
eseiler committed Sep 29, 2023
commit 87fec13850d03a27ef8e1f9ff9893e37f06aaa3a
10 changes: 6 additions & 4 deletions include/seqan3/alphabet/composite/semialphabet_any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ class semialphabet_any : public alphabet_base<semialphabet_any<size>, size, void
* \details
* \stableapi{Since version 3.1.}
*/
template <semialphabet other_alph_t>
requires (alphabet_size<other_alph_t> == size)
template <typename other_alph_t>
requires (!std::same_as<other_alph_t, semialphabet_any>)
&& semialphabet<other_alph_t> && (alphabet_size<other_alph_t> == size)
explicit semialphabet_any(other_alph_t const other)
{
assign_rank(seqan3::to_rank(other));
Expand All @@ -83,8 +84,9 @@ class semialphabet_any : public alphabet_base<semialphabet_any<size>, size, void
* \details
* \stableapi{Since version 3.1.}
*/
template <semialphabet other_alph_t>
requires ((alphabet_size<other_alph_t> == size) && std::regular<other_alph_t>)
template <typename other_alph_t>
requires (!std::same_as<other_alph_t, semialphabet_any>)
&& semialphabet<other_alph_t> && (alphabet_size<other_alph_t> == size) && std::regular<other_alph_t>
explicit operator other_alph_t() const
{
other_alph_t other{};
Expand Down