Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Mauney committed Oct 16, 2024
1 parent 8b3617e commit 761d580
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions ports-of-call/span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,18 @@ class span {
template <
class Container, std::size_t E = Extent,
span_REQUIRES(E == dynamic_extent && detail::is_container<Container>::value &&
detail::is_compatible_container<Container &, ElementType>::value)>
constexpr span(Container &cont) noexcept
detail::is_compatible_container<Container &, ElementType>::value &&
!std::is_rvalue_reference<Container &&>::value)>
constexpr span(Container &&cont) noexcept
: storage_(detail::data(cont), detail::size(cont)) {}

template <class Container, std::size_t E = Extent,
span_REQUIRES(
E == dynamic_extent && detail::is_container<Container>::value &&
detail::is_compatible_container<const Container &, ElementType>::value)>
constexpr span(const Container &cont) noexcept
: storage_(detail::data(cont), detail::size(cont)) {}
// template <class Container, std::size_t E = Extent,
// span_REQUIRES(
// E == dynamic_extent && detail::is_container<Container>::value &&
// detail::is_compatible_container<const Container &,
// ElementType>::value)>
// constexpr span(const Container &cont) noexcept
// : storage_(detail::data(cont), detail::size(cont)) {}

constexpr span(const span &other) noexcept = default;

Expand Down

0 comments on commit 761d580

Please sign in to comment.