[Interest] Byte Swapping float and double

Thiago Macieira thiago.macieira at intel.com
Sat Sep 7 18:42:52 CEST 2013


On sábado, 7 de setembro de 2013 12:24:26, Michael Jackson wrote:
> I have some code that needs to convert from the system to Big Endian byte
> order. All my integers work just fine but I am getting linker errors when
> trying to byte swap floats and doubles.
> 
> I have #include <QtCore/QtEndian>
> 
> and I have a templates function like this:
> 
> template<typename T>
> void foo(T value)
> {
>   value = qToBigEndian(value);
>    .. does something with that data.
> }
> 

> What am I missing?

Nothing. Those functions don't exist.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130907/7a24674a/attachment.sig>


More information about the Interest mailing list