Changeset 43:c764871c52fc in rrlib_rtti_conversion
- Timestamp:
- 08.04.2021 06:49:41 (2 weeks ago)
- Branch:
- 17.03
- Phase:
- public
- Tags:
- tip
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tStaticCastOperation.cpp
r40 r43 278 278 } 279 279 tCommonUnderlyingTypeResult result = GetCommonUnderlyingType(source_type, destination_type); 280 if (result.common_underlying_type == destination_type || (result.cast_from_common_to_destination_type_valid && (result.common_underlying_type == source_type || result.cast_from_common_to_destination_type_implicit || result.cast_from_source_to_common_type_implicit)) )280 if (result.common_underlying_type == destination_type || (result.cast_from_common_to_destination_type_valid && (result.common_underlying_type == source_type || result.cast_from_common_to_destination_type_implicit || result.cast_from_source_to_common_type_implicit)) || result.common_underlying_type.GetTypeClassification() == tTypeClassification::PORT_COMPOSITE_INTERFACE) 281 281 { 282 282 return tConversionOption(source_type, destination_type, 0); … … 355 355 } 356 356 tCommonUnderlyingTypeResult result = GetCommonUnderlyingType(source_type, destination_type); 357 if ((result.common_underlying_type == destination_type && result.cast_from_source_to_common_type_implicit) || (result.common_underlying_type == source_type && result.cast_from_common_to_destination_type_valid && result.cast_from_common_to_destination_type_implicit)) 357 if ((result.common_underlying_type == destination_type && result.cast_from_source_to_common_type_implicit) || (result.common_underlying_type == source_type && result.cast_from_common_to_destination_type_valid && result.cast_from_common_to_destination_type_implicit) 358 || (result.common_underlying_type.GetTypeClassification() == tTypeClassification::PORT_COMPOSITE_INTERFACE && result.cast_from_common_to_destination_type_implicit && result.cast_from_common_to_destination_type_valid && result.cast_from_source_to_common_type_implicit)) 358 359 { 359 360 return tConversionOption(source_type, destination_type, 0);
Note: See TracChangeset
for help on using the changeset viewer.