$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] Convert big endian to little endian (floating point values)
From: Martin Vymazal (martin.vymazal_at_[hidden])
Date: 2015-12-08 13:20:47
Hello,
I am trying to convert a floating point value from big endian to little
endian, but the code below does not compile:
double x = 10.0;
const double x_big_endian = boost::endian::native_to_big(x);
boost::endian::native_to_big_inplace(x);
and the compiler (gcc 5.2) only offers overloads for integer types. This is
with boost 1.59. Are floating point values currently supported (the website of
boost::endian says so)? Am I doing something wrong?
Thank you.
Martin