diff --git a/CHANGELOG.md b/CHANGELOG.md index 62dee016b7..674d43a99d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -121,6 +121,11 @@ If possible, provide tooling that performs the changes, e.g. a shell-script. * `seqan3::option_spec::ADVANCED` is replaced by `seqan3::option_spec::advanced`. * `seqan3::option_spec::HIDDEN` is replaced by `seqan3::option_spec::hidden`. +#### Core + +* We deprecated seqan3::range_compatible_concept and it will be removed in 3.1.0 + ([\#2265](https://github.com/seqan/seqan3/pull/2265)). + #### I/O * Renamed seqan3::alignment_file\* to seqan3::sam_file\* diff --git a/include/seqan3/core/range/type_traits.hpp b/include/seqan3/core/range/type_traits.hpp index cb9aa0cc77..cf08c2873a 100644 --- a/include/seqan3/core/range/type_traits.hpp +++ b/include/seqan3/core/range/type_traits.hpp @@ -269,18 +269,28 @@ constexpr size_t range_dimension_v = range_dimension_v * \brief Two types are "compatible" if their seqan3::range_dimension_v and their seqan3::range_innermost_value_t are * the same. * \deprecated This concept is deprecated and will be removed in SeqAn-3.1. */ //!\cond +namespace deprecated +{ +template +SEQAN3_CONCEPT range_compatible_concept = requires (t1, t2) +{ + requires (range_dimension_v == range_dimension_v); + + requires std::is_same_v, range_innermost_value_t>; +}; +} // namespace seqan3::deprecated + template -SEQAN3_DEPRECATED_310 constexpr bool range_compatible = ( - std::is_same_v, range_innermost_value_t> && - range_dimension_v == range_dimension_v -); +SEQAN3_DEPRECATED_310 constexpr bool range_compatible = deprecated::range_compatible_concept; //!\endcond +#endif // SEQAN3_DEPRECATED_310 //!\}