Re: bin_float parser

"Hartmut Kaiser" <[email protected]> Sun, 17 Jul 2011 10:08:32 -0500
Newsgroups gmane.comp.parsers.spirit.devel
Message-ID <[email protected]>
Vitaly,

Sorry for the delay...

> Now that Boost 1.47 has been released, I'm hoping to get the following
> parsers added for the next version.
> Attempt #2, which has hopefully addressed all of the issues from the
> previous submission. Please see attached diffs and test case.

Thanks for your contribution! 

>From reading Wikipedia (http://en.wikipedia.org/wiki/Endianness#Floating-point_and_endianness) I gather: 

<quote>
It may therefore appear strange that the widespread IEEE 754 floating point standard does not specify endianness.[4] Theoretically, this means that even standard IEEE floating point data written by one machine might not be readable by another. However, on modern standard computers (i.e. implementing IEEE 754), one may in practice safely assume that the endianness is the same for floating point numbers as for integers, making the conversion straight forward regardless of data type. (Small embedded systems using special floating point formats may be another matter however.)
</quote>

Is that your assumption while implementing the float_bin? I'm asking as I personally have no experience with this problem domain.

Nevertheless, Joel and I would be willing to accept this into the Spirit repository if you added some tests and docs. Would you be willing to prepare corresponding patches?

Thanks!
Regards Hartmut
---------------
http://boost-spirit.com




------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev