Skip to content

Commit

Permalink
Merge pull request #2586 from marehr/latest_range
Browse files Browse the repository at this point in the history
Update to latest range-v3 version
  • Loading branch information
eseiler authored May 2, 2021
2 parents 19443fe + cac4705 commit 54379f9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions include/seqan3/core/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,17 @@
# endif
#endif

/*!\brief https://eel.is/c++draft/range.take#view defines e.g. `constexpr auto size() requires sized_­range<V>` without
* any template. This syntax works since gcc-10, before that a dummy `template <typename = ...>` must be used.
*/
#ifndef SEQAN3_WORKAROUND_GCC_NON_TEMPLATE_REQUIRES
# if defined(__GNUC_MINOR__) && (__GNUC__ < 10) // fixed since gcc-10
# define SEQAN3_WORKAROUND_GCC_NON_TEMPLATE_REQUIRES 1
# else
# define SEQAN3_WORKAROUND_GCC_NON_TEMPLATE_REQUIRES 0
# endif
#endif

//!\brief Workaround to access the static id of the configuration elements inside of the concept definition
//! (fixed in gcc11).
#ifndef SEQAN3_WORKAROUND_GCC_PIPEABLE_CONFIG_CONCEPT
Expand Down
3 changes: 3 additions & 0 deletions include/seqan3/utility/views/pairwise_combine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ class pairwise_combine_view : public std::ranges::view_interface<pairwise_combin
* \{
*/
//!\brief Computes the size based on the size of the underlying range.
#if SEQAN3_WORKAROUND_GCC_NON_TEMPLATE_REQUIRES
template <typename = underlying_range_type>
#endif // SEQAN3_WORKAROUND_GCC_NON_TEMPLATE_REQUIRES
constexpr auto size() const noexcept
//!\cond
requires std::ranges::sized_range<underlying_range_type>
Expand Down
2 changes: 1 addition & 1 deletion submodules/range-v3
Submodule range-v3 updated 80 files
+14 −13 CMakeLists.txt
+38 −0 README.md
+12 −2 cmake/concepts_test_code.cpp
+1 −1 cmake/coro_test_code.cpp
+2 −2 cmake/range-v3-config.cmake
+0 −13 cmake/ranges_env.cmake
+5 −2 cmake/ranges_flags.cmake
+3 −0 cmake/ranges_options.cmake
+13 −13 doc/CMakeLists.txt
+7 −5 example/CMakeLists.txt
+11 −0 example/view/CMakeLists.txt
+18 −0 example/view/filter.cpp
+1 −0 example/view/filter_golden.txt
+12 −0 example/view/ints.cpp
+1 −0 example/view/ints_golden.txt
+18 −0 example/view/transform.cpp
+1 −0 example/view/transform_golden.txt
+2 −1 include/concepts/compare.hpp
+6 −0 include/concepts/concepts.hpp
+26 −18 include/meta/meta.hpp
+2 −1 include/meta/meta_fwd.hpp
+2 −1 include/range/v3/compare.hpp
+10 −0 include/range/v3/detail/config.hpp
+1 −0 include/range/v3/detail/epilogue.hpp
+10 −0 include/range/v3/detail/prologue.hpp
+1 −1 include/range/v3/experimental/view/shared.hpp
+2 −2 include/range/v3/functional/comparisons.hpp
+1 −1 include/range/v3/functional/concepts.hpp
+1 −1 include/range/v3/iterator/concepts.hpp
+47 −0 include/range/v3/iterator/stream_iterators.hpp
+5 −62 include/range/v3/iterator_range.hpp
+2 −2 include/range/v3/range.hpp
+171 −199 include/range/v3/range/access.hpp
+8 −3 include/range/v3/range/concepts.hpp
+11 −0 include/range/v3/range/conversion.hpp
+174 −113 include/range/v3/range/primitives.hpp
+2 −1 include/range/v3/range_fwd.hpp
+2 −1 include/range/v3/view/any_view.hpp
+2 −2 include/range/v3/view/cache1.hpp
+7 −7 include/range/v3/view/cartesian_product.hpp
+8 −8 include/range/v3/view/chunk.hpp
+2 −2 include/range/v3/view/common.hpp
+6 −6 include/range/v3/view/concat.hpp
+2 −2 include/range/v3/view/const.hpp
+5 −4 include/range/v3/view/cycle.hpp
+2 −2 include/range/v3/view/drop.hpp
+2 −2 include/range/v3/view/drop_exactly.hpp
+5 −6 include/range/v3/view/drop_last.hpp
+1 −1 include/range/v3/view/empty.hpp
+6 −0 include/range/v3/view/enumerate.hpp
+2 −2 include/range/v3/view/exclusive_scan.hpp
+32 −0 include/range/v3/view/filter.hpp
+2 −2 include/range/v3/view/indirect.hpp
+2 −2 include/range/v3/view/intersperse.hpp
+30 −2 include/range/v3/view/iota.hpp
+2 −2 include/range/v3/view/join.hpp
+2 −2 include/range/v3/view/move.hpp
+3 −3 include/range/v3/view/partial_sum.hpp
+2 −2 include/range/v3/view/ref.hpp
+2 −2 include/range/v3/view/reverse.hpp
+2 −2 include/range/v3/view/sliding.hpp
+13 −13 include/range/v3/view/split.hpp
+2 −2 include/range/v3/view/stride.hpp
+2 −2 include/range/v3/view/tail.hpp
+6 −6 include/range/v3/view/take.hpp
+2 −2 include/range/v3/view/take_exactly.hpp
+33 −2 include/range/v3/view/transform.hpp
+7 −5 include/range/v3/view/zip_with.hpp
+6 −6 perf/CMakeLists.txt
+1 −0 test/iterator/CMakeLists.txt
+114 −0 test/iterator/unformatted_ostream_iterator.cpp
+2 −2 test/range/access.cpp
+8 −0 test/range/conversion.cpp
+2 −1 test/utility/compare.cpp
+2 −1 test/utility/concepts.cpp
+1 −1 test/view/CMakeLists.txt
+7 −1 test/view/drop_last.cpp
+1 −0 test/view/enumerate.cpp
+3 −0 test/view/zip.cpp
+3 −3 test_package/CMakeLists.txt

1 comment on commit 54379f9

@vercel
Copy link

@vercel vercel bot commented on 54379f9 May 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.