Re: g++ member function .at() for arrays

2013-03-08 Thread Florian Weimer
On 03/08/2013 10:07 AM, Robin Whittle wrote: Further to my previous message, the start of my program is: int aa1[4] = {0, 1, 2, 3}; This should work: std::array aa1 = {0, 1, 2, 3}; Your question is more appropriate for the gcc-help mailing list. I'm redirecting it there. -- Flori

Re: g++ member function .at() for arrays

2013-03-08 Thread James Dennett
On Fri, Mar 8, 2013 at 12:42 AM, Robin Whittle wrote: > I am a newbie to this list. Thanks for GCC, g++ the C++ standard > library and GDB! Apologies in advance if I have missed a web page where > this question is answered. Perhaps this question belongs on the > libstdc++ list. It doesn't belo

Re: g++ member function .at() for arrays

2013-03-08 Thread Robin Whittle
Further to my previous message, the start of my program is: #include #include #include #include #include using std::vector; using std::deque; using std::cout; using std::endl; int main(int argc, char **argv) { int aa1[4] = {0, 1, 2, 3}; vector vv1{50, 51, 52, 53}; deque dd1{100, 1