[
https://issues.apache.org/jira/browse/TUSCANY-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528418
]
Michael Yoder commented on TUSCANY-1695:
----------------------------------------
This seem like a bug in the compiler. ;-) The dereferenced iterator here is a
smart pointer, and can't be cast directly. RefCountingPointer.h has helper
functions for casting smart pointers. A more correct fix would be:
- PropertyPtr current = *j;
+ PropertyPtr current = staticCast<PropertyPtr>(*j);
> SDOUtils.cpp does not compile due to problematic cast
> -----------------------------------------------------
>
> Key: TUSCANY-1695
> URL: https://issues.apache.org/jira/browse/TUSCANY-1695
> Project: Tuscany
> Issue Type: Bug
> Components: C++ Build
> Affects Versions: Cpp-Next
> Environment: Linux Fedora Core 2.6.21-1.3194.fc7
> g++ (GCC) 4.1.2 20070502 (Red Hat 4.1.2-12)
> Reporter: Ralf Henschkowski
> Fix For: Cpp-Next
>
>
> compiler sees ambiguitiy in the following line:
> ===================================================================
> --- sdo/runtime/core/src/commonj/sdo/SDOUtils.cpp (revision 575198)
> +++ sdo/runtime/core/src/commonj/sdo/SDOUtils.cpp (working copy)
> @@ -275,7 +275,7 @@
> j != pl.end();
> j++)
> {
> - PropertyPtr current = *j;
> + PropertyPtr current = (PropertyPtr)*j;
> out << "\tProperty: "
> << current->getName()
> Explicit cast helped to compile it, but I'm not sure if it is a fix ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]