Re: [dev] UNO STL

2006-10-25 Thread Stephan Bergmann

Eike Rathke wrote:

Hi CLAIRE,,

On Monday, 2006-10-23 16:16:09 +0100, CLAIRE, Narinder, Group Risk Mgmt wrote:


When Building an uno component in C++ with a Makefile taken from one of the
examples in SDK, which STL is visible, the native STL or STLport ?


STLport.


If STLport , then if the uno component links to a third-part library calling
funtions that return or recieve  STL containers, must that third party
library also be built with STLport ?


Yes. Generally you can't mix container objects of different STL
implementations, as their implementation details may differ and
especially iterators of one implementation working on containers of
another implementation will most probably not work, or crash at its
best.


- If you can separate the third-party library STL usage from the 
SDK-related STL usage (e.g., by introducing an additional library that 
wraps the third-party library and does not use STL in its API), it 
*might* work to have two different STL implementations in the same process.


- Similarly, if you do not need any of the STL-using API of UNO (parts 
of cpppuhelper, IIRC), it *might* work to tweak your SDK-based project 
to not use the SDK's STLport, but use another STL implementation instead.


But all that is rather fragile and there are no guarantees.

-Stephan


  Eike

P.S.: As you're not subscribed to the mailing list you were posting to,
you will miss replies that are directed to the list only. When answering,
please reply only to the list (Reply-To header is set), not to my
personal account. Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] UNO STL

2006-10-24 Thread Eike Rathke
Hi CLAIRE,,

On Monday, 2006-10-23 16:16:09 +0100, CLAIRE, Narinder, Group Risk Mgmt wrote:

 When Building an uno component in C++ with a Makefile taken from one of the
 examples in SDK, which STL is visible, the native STL or STLport ?

STLport.

 If STLport , then if the uno component links to a third-part library calling
 funtions that return or recieve  STL containers, must that third party
 library also be built with STLport ?

Yes. Generally you can't mix container objects of different STL
implementations, as their implementation details may differ and
especially iterators of one implementation working on containers of
another implementation will most probably not work, or crash at its
best.

  Eike

P.S.: As you're not subscribed to the mailing list you were posting to,
you will miss replies that are directed to the list only. When answering,
please reply only to the list (Reply-To header is set), not to my
personal account. Thanks.

-- 
 OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
 Please don't send personal mail to this [EMAIL PROTECTED] account, which I use 
for
 mailing lists only and don't read from outside Sun, use the [EMAIL PROTECTED] 
account
 instead if really needed. Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]