[omniORB] omniORB3 string_member mapping for structured types.

Terry A. Lee terryl@wt.net
Tue, 25 Jan 2000 11:47:45 -0600


Hi,

In Section 1.9 of the OMG C++ mapping specification (June 1999)
they state that "The mapping for struct, union, and sequence is a
C++ struct or class with a default constructor, a copy constructor,
an assignment operator, and a destructor. The default constructor
initializes object reference members to appropriately-typed nil
object references, and string members and wide string members to
the empty string ("" and L"", respectively). All other members
are initialized via their default constructors."

However I noticed in stringtypes.h that the omniORB string_member
constructor called to initialize strings in a structure builds a
null pointer for pd_data and not a pointer to "".

inline _CORBA_String_member() : pd_data(0), pd_rel(1), _ptr(pd_data) {}

Perhaps I have misunderstood something here?

Environment NT 4.0 SP5, Sparc Solaris 2.6

Terry Lee
Paradigm Geophysical