On Thursday 24 November 2005 09:29, you wrote:
> Stephan Bergmann wrote:
> > Petr Mladek wrote:
>
> [...]
>
> >> It seems that the project testtools includes one more complex template
> >> for getCppuType. I got this build error:
>
> [...]
>
> > The problem is the same as with getCppuType for the Sequence
> > template---the resulting getCppuType is not a specialization of the
> > primary template, but a second, overloading template. However, the
> > solution cannot be as in the Sequence case: The set of UNO entities
> > (polymorphic struct type templates in this case) is dynamic, not static,
> > so you cannot move all the relevant getCppuTypes to Type.h.
> >
> > So, it seems yet another round of C++ trickery is needed... Stay tuned.
>
> Dumped CWS sb40 and started from scratch on CWS sb41 (on SRC680m141).
> The stuff is not yet final (some minor problems with unxsol and
> wntmsci10 compilers), but you can already check it out and verify that
> it works for GCC 4.1:
I had to update comphelper/inc/comphelper/types.hxx to build the module
comphelper. The patch is attached.
The build continues. I'll let you know about the result.
Thanks a lot for help.
--
Best Regards,
Petr Mladek
software developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: [EMAIL PROTECTED]
Drahobejlova 27 tel:+420 296 542 373
190 00 Praha 9 fax:+420 296 542 374
Czech Republic http://www.suse.cz/
--- comphelper/inc/comphelper/types.hxx.old 2005-09-08 04:40:50.000000000 +0200
+++ comphelper/inc/comphelper/types.hxx 2005-11-24 18:18:39.000000000 +0100
@@ -110,7 +110,7 @@
template <class TYPE>
sal_Bool isA(const staruno::Type& _rType, TYPE* pDummy)
{
- return _rType.equals(getCppuType(pDummy));
+ return _rType.equals(::cppu::getTypeFavourUnsigned(pDummy));
}
//-------------------------------------------------------------------------
@@ -120,7 +120,7 @@
template <class TYPE>
sal_Bool isA(const staruno::Any& _rVal, TYPE* pDummy)
{
- return _rVal.getValueType().equals(getCppuType(pDummy));
+ return _rVal.getValueType().equals(::cppu::getTypeFavourUnsigned(pDummy));
}
//-------------------------------------------------------------------------
@@ -129,7 +129,7 @@
template <class TYPE>
sal_Bool isAReference(const staruno::Type& _rType, TYPE* pDummy)
{
- return _rType.equals(getCppuType(reinterpret_cast<staruno::Reference<TYPE>*>(NULL)));
+ return _rType.equals(::cppu::getTypeFavourUnsigned(reinterpret_cast<staruno::Reference<TYPE>*>(NULL)));
}
//-------------------------------------------------------------------------
@@ -138,7 +138,7 @@
template <class TYPE>
sal_Bool isAReference(const staruno::Any& _rVal, TYPE* pDummy)
{
- return _rVal.getValueType().equals(getCppuType(reinterpret_cast<staruno::Reference<TYPE>*>(NULL)));
+ return _rVal.getValueType().equals(::cppu::getTypeFavourUnsigned(reinterpret_cast<staruno::Reference<TYPE>*>(NULL)));
}
//-------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]