To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=57855 Issue #:|57855 Summary:|Bad uses of getCppuType (GCC 4.1) Component:|udk Version:|680m139 Platform:|All URL:| OS/Version:|All Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|code Assigned to:|sb Reported by:|sb
------- Additional comments from [EMAIL PROTECTED] Mon Nov 14 01:39:35 -0800 2005 ------- #include "com/sun/star/uno/Any.hxx" #include "com/sun/star/uno/Reference.hxx" #include "com/sun/star/uno/XComponentContext.hpp" int main() { com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > c; com::sun::star:.uno::Any a; a <<= c; } does not compile with GCC 4.1: The template Any::operator<<=() defined in Any.hxx uses getCppuType from the global namespace before the overload getCppuType(Reference<XComponentContext>const*) from XComponentContext.hpp is seen, so that overload is not available when Any::operator<<=() is instantiated for Reference<XComponentContext>. A solution might be to use the template getCppuType<T>() instead in the template Any::operator<<=(). However, getCppuType<T>() has slightly different semantics than getCppuType(T const*), see the comment in cppu/inc/com/sun/star/uno/Type.h 1.13, lines 403ff. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]