
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 25 September 2008 16:50 pm, vicente.botet wrote:
vicente.botet a écrit :
Hi,
currently most of the applications that must take care of endianess use ntohl/htonl ntohs/htons functions. When the size of the integer change we need to change between the -s and -l functions (or maybe remove the call for chars).
<snip>
Why are they template ? Atfer all, the 3 overload is fully sufficent I think
Oups! You are right.
A template would make it harder to accidentally do an implicit conversion of an unsupported argument type before it is byte swapped. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFI3OEu5vihyNWuA4URAj+0AJ0UXUuV5ckLjHjWmR10xhjJtI3l9wCgunUE DgWlO2gj211PY513tYMF+QQ= =WE/4 -----END PGP SIGNATURE-----