Commit bc496094 authored by Dominik Charousset's avatar Dominik Charousset

Add missing constructor

parent b6a2aefd
...@@ -84,6 +84,12 @@ public: ...@@ -84,6 +84,12 @@ public:
// nop // nop
} }
template <class C,
class E = detail::enable_if_t<detail::has_data_member<C>::value>>
span(const C& xs) noexcept : begin_(xs.data()), size_(xs.size()) {
// nop
}
constexpr span(const span&) noexcept = default; constexpr span(const span&) noexcept = default;
span& operator=(const span&) noexcept = default; span& operator=(const span&) noexcept = default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment