[Bug 898] New: corba serialization issue for std::vector<std::string>


Summary: corba serialization issue for std::vector<std::string>
Product: Toolchain
Version: master
Platform: All
OS/Version: Windows
Status: NEW
Severity: minor
Priority: P3
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: mathieu [dot] gautier [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Created attachment 731
--> http://bugs.orocos.org/attachment.cgi?id=731
[PATCH] transport corba : fix serialization of stl container of std::string.

There is a specialization of AnyConversion<std::string>::toCorbaType for TAO
implementation use while serializing a std::vector<std::string> into a string
sequence. This specialization is not choosen in some cases if the string
sequence element is given by reference. I only observe this issue recently with
msvc 2008 and 2010. I didn't have this problem when I have submitted this
functionality (see commit 506a183a9a3c0e6c3a9220e6333812c1a04bc0c5).

Moreover in TAO implementation a string sequence element is a kind of smart
pointer to the serialized string (a char*), so I think it's intended to be pass
by value.

see the attached patch.