profile mode broken with -std=gnu++0x

Silvius Rus rus@google.com
Wed May 5 19:04:00 GMT 2010


On Wed, May 5, 2010 at 3:20 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Can you instead avoid including in profile mode the whole <algorithm>?
> If you can do with only <bits/stl_algobase.h> I think the problem would
> be also solved: I see only an handful of <algorithm> -proper functions
> used, among which std::sort, which, if I understand correctly an XXX
> comment in __report, you want to replace, and other trivial ones, which
> you can open-code adding a minimal amount of code, like std::for_each or
> std::remove. That would be a *much* more satisfactory fix.

That's what I thought would be the right solution as well.  Including
<algorithm> is likely to cause more trouble in the future. However,
re-implementing algorithms isn't a great solution either.  Let me
think about it a bit now that I understand the problem.

Silvius



More information about the Libstdc++ mailing list