I ran this:
cout << "has nan q?" << numeric_limits<int>::has_quiet_NaN << endl;
cout << "has nan s?" << numeric_limits<int>::has_signaling_NaN << endl;
cout << "has nan q?" << numeric_limits<double>::has_quiet_NaN << endl;
cout << "has nan s?" << numeric_limits<double>::has_signaling_NaN << endl;
and I get
0
0
1
1
why would int not have NaN?? I'm using g++.
Thanks!
Dave