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

Allow span(std::array<const T,N>) ? #2

Open martinmoene opened 6 years ago

martinmoene commented 6 years ago

span-lite release 0.1.0 allows the construction of a span from std::array with a const value type.

However this is not supported by p0122r7.

Keep an eye on this and if needed, decide to allow or not such a difference from std::span. If it's different from std::span, add a notice to the test specification.

See also thread [isocpp-lib] P0122R7 (span): element_type instead of value_type in constructor taking std::aray? of 28-Apr-18, 15:21.