Reputation: 29
I want to store some gls::span< std::complex>> in a std::vector. I expected it to be very simple:
vector<gsl::span<complex<double>>> allSpans; //Unexpected structure in debugger
vector<complex<double>> v{1.0, 2.0, 3.0};
gsl::span<complex<double>> span(v);
allSpans.push_back(span);
Inspecting allSpans in a debugger reveals that there is no normal vector structure for allSpans with elements as I would have expected, instead it shows me a _Mypair member only. I don't know where the problem lies.
Upvotes: 2
Views: 327