[xsd-users] Double definitions when using DLLs

alexander.gosling at kongsberg.com alexander.gosling at kongsberg.com
Wed May 14 04:56:35 EDT 2014


Thanks for the useful tip :)

We will do this.

--
alex

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: 13. mai 2014 05:35
To: Gosling, Alexander
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] Double definitions when using DLLs

Hi Alexander,

alexander.gosling at kongsberg.com <alexander.gosling at kongsberg.com> writes:

> Are there any plans to fix this more permanently?

This is really a problem in the MS toolchain. Essentially, with VC++ it is impossible to derive from std::string if DLLs are used.

Unfortunately there is no easy way to work around this problem from our side. The "permanent" way to fix this would be to stop deriving from std::string. But that would also remove fairly useful
functionality: right now one can pass xml_schema::string (or any other string-based type) to an interface that expects std::string and everything will work out of the box. Removing this functionality for everyone just because Microsoft's toolchain is broken seems like a bad idea.

Note also that it is already possible to customize the xs:string type and provide your own implementation without inheritance. Maybe providing a custom implementation like this and instructions that describe how to set everything up would be sufficient?

Boris


________________________________

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be proprietary, confidential or subject to export regulations, and is only meant for the intended recipient(s). Any disclosure, copying, distribution or use is prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in error, please delete it immediately from your system and notify the sender properly.



More information about the xsd-users mailing list