martinmoene / span-lite

span lite - A C++20-like span for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
499 stars 43 forks source link

Some constructors not working with move only types #68

Closed im95able closed 3 years ago

im95able commented 3 years ago

Since restrictions to constructors have been added, some constructors don't work. For example:

std::array<std::unique_ptr<int>, 5> a;
nonstd::span s{a.begin(), 5};

Was this intended ?

im95able commented 3 years ago

Thanks for the quick fix. Could we have a new release ?

martinmoene commented 3 years ago

I'll make a new release, perhaps this evening or tomorrow.

martinmoene commented 3 years ago

Closing this now, feel free to reopen if needed.