From 35b2df47ef32aedde6bb7f15683182a7d753ea84 Mon Sep 17 00:00:00 2001 From: parsons Date: Sat, 26 Feb 2000 00:49:04 +0000 Subject: * 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; --- TAO/ChangeLogs/ChangeLog-02a | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 + + * 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 * tests/IDL_Test/reopened_modules.idl: -- cgit v1.2.1