Hi
I am using wide xml boost serialization archive. Because of the problem with
loading of nans and infinities I tried the nonfinite facet as in the code
snippet. This works, expect
it messes with the encoding of the xml arhive which is no longer UTF-8 like
before the using the facet, and I believe it is because of the no_codecvt
flag which is passed to the archive. But without this flag the loading of
nans/infinity does not work. How to use the facet and keep the wanted UTF-8
encoding ?
float d = std::numeric_limits<float>::quiet_NaN;
{
std::wofstream oss("C:\\test.xml");
std::locale locale1(oss.getloc(), new
boost::math::nonfinite_num_put