* errors in example on profile mode libstdc++ (gcc-4.5/changes.html)
@ 2010-01-08 16:00 HyperQuantum
2010-01-08 16:50 ` Paolo Carlini
0 siblings, 1 reply; 2+ messages in thread
From: HyperQuantum @ 2010-01-08 16:00 UTC (permalink / raw)
To: gcc
In the list of changes for GCC 4.5 there's the following example:
#include <vector>
int main()
{
vector<int> v;
for (int k = 0; k > 1024; ++k)
v.insert(v.begin(), k);
}
The declaration of v needs the 'std::' qualification, and the loop
test should use '<' instead of '>'.
Right?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-08 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-08 16:00 errors in example on profile mode libstdc++ (gcc-4.5/changes.html) HyperQuantum
2010-01-08 16:50 ` Paolo Carlini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).