Boost logo

Boost Users :

From: Johan Råde (rade_at_[hidden])
Date: 2006-07-06 08:35:08


Following a suggestion of Robert Ramey's, I have put together facets for
writing and reading non-finite floating point numbers, such as infinity
and nan, to text streams, in a consistent and portable way. This is
useful when serializing to text archives, but should have other
applications as well.

I have attached a zip file. It contains three files:

1. the actual code: non_finite_num_facets.hpp
2. documentation: non_finite_num_facets_doc.txt
3. tests: non_finite_num_facets_test.cpp

The code handles char and wchar_t. It handles float, double and long double.

The code has been tested with VC++ 7.1 but should work with other
compilers as well.

Any feedback is wellcome.

--Johan Råde (rade_at_[hidden])




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net