IStreamC and OStreamC are supposed to mirror each other, i.e. if OStreamC outputs something, ISreamC is supposed to read it bac as (more or less) the same object.
This fails if OStreamC outputs a RealT that is a nan.
Cheers, Bill.
Logged In: NO
# For example:
#include "Ravl/StdConst.hh" #include "Ravl/StrStream.hh"
using namespace RavlN;
int main() {
RealT m(RavlConstN::nanReal); StrOStreamC obuf; obuf << m; cout << m << endl; StrIStreamC ibuf(obuf.String()); RealT n; ibuf >> n; cout << n << endl; }
Logged In: NO
# For example:
#include "Ravl/StdConst.hh"
#include "Ravl/StrStream.hh"
using namespace RavlN;
int main() {
RealT m(RavlConstN::nanReal);
StrOStreamC obuf;
obuf << m;
cout << m << endl;
StrIStreamC ibuf(obuf.String());
RealT n;
ibuf >> n;
cout << n << endl;
}