|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2008-02-03 04:38:57
Bruno Lalande wrote:
> With your modification the function is finally much more than a
> syntactic
> helper since it runs faster than what an average programmer would
> type by
> hand. Shouldn't it be integrated somewhere into Boost ?
It sounds pretty useful to me too: indeed I was just wondering the other day
why C++ doesn't have functions for squares and cubes (they're handy if you
want to square or cube some other - maybe complex - expression).
If someone would like to package it up with tests and docs, I'd be happy to
integrate this into Boost.Math.
Regards, John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk