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:

enter image description 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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -