|
Boost : |
Subject: Re: [boost] hton/ntoh template functions
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2008-09-25 16:50:18
----- Original Message -----
From: "Joel Falcou" <joel.falcou_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, September 25, 2008 9:08 PM
Subject: Re: [boost] hton/ntoh template functions
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk