seqan3 icon indicating copy to clipboard operation
seqan3 copied to clipboard

Compilation issue in iterator_traits.hpp

Open jay-tux opened this issue 2 years ago • 1 comments

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

  1. install conan
  2. in the conanfile.txt, add seqan3/3.1.0
  3. include debug_stream.hpp from seqan
  4. 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

jay-tux avatar Jun 01 '22 13:06 jay-tux

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.

eseiler avatar Jun 01 '22 16:06 eseiler

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!

smehringer avatar Oct 14 '22 07:10 smehringer