I there a compiler option I could use in CC compiler to get the following code (which compiles fine in Visual C++)
std::vector<std::vector<double>> v2;
without the following error
Error: "," expected instead of ">>"
Try this :
std::vector<std::vector<double> > v2; //give a space between two '>'
">>
" is interpreted as the right shift operator and hence you get a compile time error.
This problem will be fixed in C++0x. Have a look here .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With