include <vector>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
vector<vector<int>> vecVecInts;
return 0;
}
I have turned off Visual Studio 2008 language extension and compiled the above code without warning or errors.
I used to remember that we have to replace the following line
vector<vector<int>>
with
vector<vector<int> >
because the compiler at that time doesn’t recognize the >> in the end.
Question> When does C++ standard introduce this syntax sweeter?
Thank you
It was introduced in the most recent standard, C++11, §14.2/3: