Cool, %zu seems to work with Intel and GNU compiler.
Thank you, folks!
Type: Posts; User: manuels
Cool, %zu seems to work with Intel and GNU compiler.
Thank you, folks!
yeah, would be a workaround. But my output line is quite complex so I would prefer a printf version.
This warning annoys me since years and I want to know why it doesn't work like that.. in...
I know. But I just saw that the error only appears if I use Intel's icc.
With g++ it works fine.
Hi guys,
I'm using this code:
vector<int> v;
v.push_back(123);
printf("size: %u\n", v.size());
And it retuns the result you would expect.
But if you compile it you get this warning: