26 Feb
2008
26 Feb
'08
2:06 p.m.
Johan Råde wrote:
John Maddock wrote:
Johan Råde wrote:
Could you check the value of ss.str() after line 105 in legacy_test.cpp?
1.#QNAN -1.#IND 1.#QNAN -1.#QNAN
With MSVC's debug checks enabled the attempt to read from the stream at line 108 results in a debug assertion being triggered and the code aborting: it tries to increment the istream_iterator past the end :-(
Can you check if it is reading b11 that causes problems in line 108:
ss >> b1 >> b2 >> b3 >> b4 >> b5 >> b6 >> b7 >> b8 >> b9 >> b10
b11;
What happens if you change line 105 from
ss << " qnan snan nanq nans 1.#IND 1.#QNAN 1.#SNAN";
to (note the space at the end of the string)
ss << " qnan snan nanq nans 1.#IND 1.#QNAN 1.#SNAN ";
Yep, that fixes it, but shouldn't be needed? HTH John.