Date: Monday, February 20, 2006 @ 11:34:08
Author: marc
Path: /cvsroot/carob/carob
Modified: src/ParameterStatement.cpp (1.22 -> 1.23)
test/40-Parameter-PreparedStatement/TestIEEE754.cpp (1.9 ->
1.10)
Restored/enhanced lost comments about isnan() not belonging to C++98.
-----------------------------------------------------+
src/ParameterStatement.cpp | 2 +-
test/40-Parameter-PreparedStatement/TestIEEE754.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: carob/src/ParameterStatement.cpp
diff -u carob/src/ParameterStatement.cpp:1.22
carob/src/ParameterStatement.cpp:1.23
--- carob/src/ParameterStatement.cpp:1.22 Wed Feb 15 11:03:42 2006
+++ carob/src/ParameterStatement.cpp Mon Feb 20 11:34:08 2006
@@ -250,7 +250,7 @@
// This is the actual filtering operator
operator<< (FP value)
{
- // Warning: this is C99 code, not C++98!
+ // Warning: isnan() and isinf() are C99, not C++98!
// first the common case
if (!isnan(value) && !isinf(value)) {
Index: carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp
diff -u carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp:1.9
carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp:1.10
--- carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp:1.9 Tue Feb
14 12:05:05 2006
+++ carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp Mon Feb 20
11:34:08 2006
@@ -72,7 +72,7 @@
template <class FP> bool
better_equal(FP a, FP b)
{
- if (isnan(a))
+ if (isnan(a)) // isnan() is C99 but not C++98
return (isnan(b) && (std::signbit(a) == std::signbit(b)));
else
return (a == b);
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits