You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Anton Pevtsov <an...@moscow.vdiweb.com> on 2006/02/09 17:30:15 UTC

tests for lib.alg.heap.operations

The attached file contains the tests for the lib.alg.heap.operations
algorithms (make_heap, push_heap, pop_heap, sort_heap).

With best wishes,
Anton Pevtsov


Re: tests for lib.alg.heap.operations

Posted by Martin Sebor <se...@roguewave.com>.
Anton Pevtsov wrote:
> The attached file contains the tests for the lib.alg.heap.operations
> algorithms (make_heap, push_heap, pop_heap, sort_heap).

Very good! Committed thus:
http://svn.apache.org/viewcvs?rev=376446&view=rev

Btw., I removed your cool calculator function objects and did the
calculation directly in the testing function. I like the general
approach (it's the STL way :) but the problem with it is that it
causes code bloat and increased compilation time. To give you
a general idea, the original code took 10% longer to compile with
gcc 4.0.2 and produced an object file nearly 20% bigger than after
the change.

Martin