I am reading the C++ Primer 5th Edition
book. Now and then, the author uses the functions begin
and end
.
For example:
int ia[3][4] = {0,1,2,3,4,5,6,7,8,9,10,11};
int (*p)[4] = begin(ia);
However, I get the error:
error: ‘begin’ was not declared in this scope
I am running gcc 4.9.2, and I use the following command to compile:
g++ -std=c++11 main.cpp