
10 Sep
2011
10 Sep
'11
11:24 a.m.
On Tue, Sep 6, 2011 at 7:48 PM, Phil Endecott <spam_from_boost_dev@chezphil.org> wrote:
... I was already wondering about the choice of function signatures:
void endian::reorder(T&); // in-place byteswap void endian::reorder(T src, T& dest); // out-of-place byteswap
What is the rationale (or precedent) for these and not
T endian::reorder(T);
?
If sin(theta) returns its result, why shouldn't reorder(val) do so too?
I've implemented your suggestion, run various tests, looked at the generated code, and tried various uses cases. Bottom line: I think you are right and will change conversion.hpp accordingly. Thanks, --Beman