SeqAn3 3.3.0
The Modern C++ library for sequence analysis.
|
Normally, we do not allow implicit conversion of single argument constructors, but in this case we make an exception, because seqan3::dna15 and seqan3::rna15 are interchangeable as they behave nearly the same (e.g. same ranks, same char to rank conversion).
seqan3::sequence
s (e.g. seqan3::dna15_vector) in general are not implicitly convertible and must be explicitly copied to be converted:
You can avoid this copy by using std::ranges::view
s:
This conversion constructor only allows converting seqan3::rna15 to seqan3::dna15. Other alphabets that inherit from seqan3::rna15 will not be implicitly convertible to seqan3::dna15.