Monday, October 21, 2013

More C++ 11 questions regarding array

Newsgroup: comp.lang.c++

Subject: More C++ 11 questions regarding array

From: bobl0456@...

Date: Mon, 21 Oct 2013 12:35:43 -0700 (PDT)



Correct me if I am wrong, but there seems to be a least 2 short comings (at least to my view point) to using std::array :



1) no equivalent to



int myArray[] = { a very long list of values too long to conveniently count };



2) no equivalent to



void func (int[], int[][3] );



in other words, when converted to an std::array we need to specify the size of all of the dimensions of arrays passed to a function.



Am I correct on these 2 points? Or are there acceptable workarounds or syntax I am not aware of?



Thanks,

Bob







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?112697-More-C-11-questions-regarding-array&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

No comments:

Post a Comment