
2 Jun
2010
2 Jun
'10
7:34 p.m.
How about putting "endian_cast" in the boost namespace and the other names in the boost::endian namespace, providing for the following usage?
using namespace boost::endian; endian_cast<big_to_little>(); endian_cast<from_little>(); endian_cast<to_big>();
Sure. Looks good. By the same reasoning, we should also have a boost::endian_swap<>(), no? (Which would be the 'in-place' version)