
2 Jun
2010
2 Jun
'10
9:31 p.m.
At Wed, 2 Jun 2010 18:06:19 +0000 (UTC), Tomas Puverle wrote:
That looks a lot like a cast, though the type doesn't change in your design, > so naming it something like "endian_cast" is not unreasonable.
Since the type isn't supposed to change, I don't like the cast<> idea too much. But let me sit on it.
Otherwise, swap_in_place<>() could be named "swap" while your swap<>() could be named something like "swapped_copy."
These are good names - I might steal them ;)
I'd go with “swap” and “swapped.” My 2c -- Dave Abrahams BoostPro Computing http://www.boostpro.com