Boost logo

Boost :

From: Joel de Guzman (djowel_at_[hidden])
Date: 2002-07-03 08:18:22


>
> It seems that reading all these, this optimization is *very* compiler
> specific.
> My immediate insight suggests to me that the best approach is a, ummm,
> a MACRO (do I hear yuck? :-). Such a macro might be able to switch
> the most efficient implementation for a particular compiler based on
> boost's
> config switches. After all, all of us at least agree that we need to
> optimize
> away the return value if possible. I suggest that the OP use his
> benchmark and
> write such a macro with specific implementations that take into
> account the
> quirks of known compilers.

Geez, I'm replying to myself! Please disregard the above. I didn't read
further down Daniel's post. So he did use macros. Duh!
Nice, Daniel!

--Joel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk