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
497 stars 41 forks source link

Imply span_FEATURE_MAKE_SPAN from span_FEATURE_NON_MEMBER_FIRST_LAST_SUB #35

Closed martinmoene closed 5 years ago

martinmoene commented 5 years ago

Imply span_FEATURE_MAKE_SPAN when span_FEATURE_NON_MEMBER_FIRST_LAST_SUB is on, as the non-member functions first(), last() and subspan() require make_span().

Currently enabling first() etc. without enabling make_span() leads to #error.

Plan:

Originates from issue #32 .