Closed slsyy closed 4 years ago
The following code does not compile:
#include <vector> #include <span> #include <https://raw.githubusercontent.com/martinmoene/span-lite/master/include/nonstd/span.hpp> #define s nonstd::span // #define s std::span void consume(s<int>); int main () { std::vector a{1, 2, 3}; consume(s(a.begin() + 1, a.end())); }
"The following code does not compile" seems to hold for both std::span and nonstd::span, see this code at godbolt.
std::span
nonstd::span
@slsyy can this issue be closed?
The following code does not compile: