seqan3
seqan3 copied to clipboard
Compilation issue in iterator_traits.hpp
Does this problem persist on the current master?
- [X] I have verified the issue on the current master
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
[using the conan package seqan3/3.1.0]
I'm having multiple compilation warnings and errors:
seqan3/core/detail/iterator_traits.hpp:50:50: error: extended character is not valid in an identifier
50 | using iterator_category = MAYBE_PRESENT(std::iterator_traits<underlying_iterator_t>::iterator_category);
seqan3/utility/concept/exposition_only/core_language.hpp:34:9: warning: testing if a concept-id is a valid expression; add ‘requires’ to check satisfaction [-Wmissing-requires]
34 | std::convertible_to<decltype(t == u), bool>;
| ^
| requires
(as well as a deprecation warning in the cereal library)
Expected Behavior
The project compiles.
Steps To Reproduce
- install conan
- in the conanfile.txt, add
seqan3/3.1.0
- include
debug_stream.hpp
from seqan - error
Environment
- Operating system: Linux 5.18.1-arch1-1 (Arch Linux)
- SeqAn version: 3.1.0 via Conan
- Compiler: GCC 12.1.0
Anything else?
No response
Hey,
seqan3.1.0 supports gcc-7 to gcc-11 (7.5, 8.4, 9.4, 10.3, and 11.2, to be precise). gcc-12 wasn't yet released when 3.1.0 was released.
We plan to release 3.2.0 this month, which will then support gcc-10 to gcc-12.
So currently, you either need to use an older compiler, or use the current master of seqan3.
Hi @jay-tux,
SeqAn 3.2.0 is out and supports GCC-12 so your error should be fixed.
If you still have troubles, feel free to reopen the issue any time!