c++ - Why does Xcode think gsl::span needs two template arguments? -
i'm getting familiar gsl, , wrote following simple example test out how gsl::span
works. xcode seems have problems can see here:
this compiles , runs fine, should, @ same time xcode thinks gsl::span
needs template argument, quite strange. i've never seen compiler or ide give actual error (not warning) , compile fine.
gsl::span
can deduce size of array, second template argument wouldn't necessary. if change argument type gsl::span<int,5>
, errors go away, of course not solution.
Comments
Post a Comment