[FIX] Restrict seqan3::alphabet_variant. - #2868
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/seqan/seqan3/88MY8wv4L92v2DecrzYsw4WcJM7o |
Codecov Report
@@ Coverage Diff @@
## release-3.1.0 #2868 +/- ##
==================================================
+ Coverage 0 98.21% +98.21%
==================================================
Files 0 272 +272
Lines 0 10827 +10827
==================================================
+ Hits 0 10634 +10634
- Misses 0 193 +193
Continue to review full report at Codecov.
|
fdea6f3 to
865a759
Compare
Fun fact you can write a concept that checks whether the type definition works. template <typename ...alphabets_t>
concept alphabet_variant_can_be_declared = requires()
{
typename seqan3::alphabet_variant<alphabets_t...>;
};Proof of concept: https://godbolt.org/z/rEKcoehqd
Not completely true, since The fix now shows that there are 4 possible ways to address the char situation:
|
865a759 to
b04b63b
Compare
|
Core Meeting 01.11.2021: We will restrict the |
aabf377 to
a0786f1
Compare
Irallia
left a comment
There was a problem hiding this comment.
LGFM, just a spelling mistake.
… the same underlying char type.
20b7aef to
8f62cf1
Compare
* [FIX] Restrict seqan3::alphabet_variant to only accept alphabets with the same underlying char type. * Apply suggestions from code review Co-authored-by: Enrico Seiler <eseiler@users.noreply.github.com>
to only accept alphabets with the same underlying char type.
This cannot be tested, since incorrect code would not compile.
since all our alphabets have
charas underlying type, this did not break anything.Fixes #2867