summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-26 00:49:04 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-26 00:49:04 +0000
commit35b2df47ef32aedde6bb7f15683182a7d753ea84 (patch)
treee28c8fb5083d42801c07189533b55c354674a884
parent87a45a2db2fba602238d23fe6259956da2a37334 (diff)
downloadATCD-35b2df47ef32aedde6bb7f15683182a7d753ea84.tar.gz
* tao/Any.h:
* tao/Any.cpp: Added insertion/extraction operator for long double. These work right out of the box on platforms like Solaris and Digitial Unix where the size of the native long double is 16 bytes. For other platforms, we define CORBA::LongDouble to be a struct containing an array 'ld' of 16 chars. In that case, the workaround would look like: CORBA::LongDouble dd; sprintf (dd.ld, "%f", 3.14159); CORBA::Any any; any <<= dd; CORBA::LongDouble dd_out; any >>= dd_out; cout << atof (dd_out.ld) << endl;
-rw-r--r--TAO/ChangeLogs/ChangeLog-02a21
1 files changed, 21 insertions, 0 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a
index 3fb4afdccd8..2feb3c02d3c 100644
--- a/TAO/ChangeLogs/ChangeLog-02a
+++ b/TAO/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,24 @@
+Fri Feb 25 18:39:17 2000 Jeff Parsons <parsons@cs.wustl.edu>
+
+ * tao/Any.h:
+ * tao/Any.cpp:
+ Added insertion/extraction operator for long double.
+ These work right out of the box on platforms like
+ Solaris and Digitial Unix where the size of the
+ native long double is 16 bytes. For other platforms,
+ we define CORBA::LongDouble to be a struct containing
+ an array 'ld' of 16 chars. In that case, the workaround
+ would look like:
+
+ CORBA::LongDouble dd;
+ sprintf (dd.ld, "%f", 3.14159);
+ CORBA::Any any;
+ any <<= dd;
+
+ CORBA::LongDouble dd_out;
+ any >>= dd_out;
+ cout << atof (dd_out.ld) << endl;
+
Fri Feb 25 18:25:28 2000 Jeff Parsons <parsons@cs.wustl.edu>
* tests/IDL_Test/reopened_modules.idl: