Changeset 11:08b89b764823 in rrlib_rtti_conversion


Ignore:
Timestamp:
28.01.2019 15:36:32 (8 months ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
17.03
Phase:
public
Message:

Fixes bug in lookup of ambiguous conversion operations used together with FOR_EACH operation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tConversionOperationSequence.cpp

    r9 r11  
    125125  if (second_operation && ambiguous_operation_lookup[1]) 
    126126  { 
    127     second_operation = &tRegisteredConversionOperation::Find(second_operation->Name(), intermediate_type, destination_type); 
     127    if (first_operation == &cFOR_EACH_OPERATION) 
     128    { 
     129      second_operation = &tRegisteredConversionOperation::Find(second_operation->Name(), intermediate_type, destination_type.GetElementType()); 
     130    } 
     131    else 
     132    { 
     133      second_operation = &tRegisteredConversionOperation::Find(second_operation->Name(), intermediate_type, destination_type); 
     134    } 
    128135  } 
    129136 
Note: See TracChangeset for help on using the changeset viewer.