Changeset 2:e67df930e58f in rrlib_rtti_conversion


Ignore:
Timestamp:
31.05.2017 23:34:57 (22 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Rebase:
36653363313533633232356333363561313236333333323933313061356562376165346363323032
Message:

Fixes static initialization issue (possibly missing type references) for registered conversion operations

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • definition/tConstOffsetConversionOperation.h

    r0 r2  
    9191   */ 
    9292  tConstOffsetConversionOperation(util::tManagedConstCharPointer name) : 
    93     tRegisteredConversionOperation(std::move(name), cCONVERSION_OPTION) 
     93    tRegisteredConversionOperation(std::move(name), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    9494  {} 
    9595  template <size_t Tchars> 
    9696  tConstOffsetConversionOperation(const char(&name)[Tchars]) : 
    97     tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), cCONVERSION_OPTION) 
     97    tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    9898  { 
    9999  } 
  • definition/tMemberFunctionConversionOperation.h

    r0 r2  
    100100   */ 
    101101  tMemberFunctionConversionOperation(util::tManagedConstCharPointer name) : 
    102     tRegisteredConversionOperation(std::move(name), cCONVERSION_OPTION) 
     102    tRegisteredConversionOperation(std::move(name), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    103103  { 
    104104  } 
    105105  template <size_t Tchars> 
    106106  tMemberFunctionConversionOperation(const char(&name)[Tchars]) : 
    107     tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), cCONVERSION_OPTION) 
     107    tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    108108  { 
    109109  } 
     
    143143   */ 
    144144  tMemberFunctionConversionOperation(util::tManagedConstCharPointer name) : 
    145     tRegisteredConversionOperation(std::move(name), cCONVERSION_OPTION) 
     145    tRegisteredConversionOperation(std::move(name), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    146146  { 
    147147  } 
    148148  template <size_t Tchars> 
    149149  tMemberFunctionConversionOperation(const char(&name)[Tchars]) : 
    150     tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), cCONVERSION_OPTION) 
     150    tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    151151  { 
    152152  } 
     
    184184   */ 
    185185  tMemberFunctionConversionOperation(util::tManagedConstCharPointer name) : 
    186     tRegisteredConversionOperation(std::move(name), cCONVERSION_OPTION) 
     186    tRegisteredConversionOperation(std::move(name), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    187187  { 
    188188  } 
    189189  template <size_t Tchars> 
    190190  tMemberFunctionConversionOperation(const char(&name)[Tchars]) : 
    191     tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), cCONVERSION_OPTION) 
     191    tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    192192  { 
    193193  } 
  • definition/tReturnFunctionConversionOperation.h

    r0 r2  
    9696   */ 
    9797  tReturnFunctionConversionOperation(util::tManagedConstCharPointer name) : 
    98     tRegisteredConversionOperation(std::move(name), cCONVERSION_OPTION) 
     98    tRegisteredConversionOperation(std::move(name), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    9999  { 
    100100  } 
    101101  template <size_t Tchars> 
    102102  tReturnFunctionConversionOperation(const char(&name)[Tchars]) : 
    103     tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), cCONVERSION_OPTION) 
     103    tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    104104  { 
    105105  } 
     
    139139   */ 
    140140  tReturnFunctionConversionOperation(util::tManagedConstCharPointer name) : 
    141     tRegisteredConversionOperation(std::move(name), cCONVERSION_OPTION) 
     141    tRegisteredConversionOperation(std::move(name), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    142142  { 
    143143  } 
    144144  template <size_t Tchars> 
    145145  tReturnFunctionConversionOperation(const char(&name)[Tchars]) : 
    146     tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), cCONVERSION_OPTION) 
     146    tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    147147  { 
    148148  } 
     
    180180   */ 
    181181  tReturnFunctionConversionOperation(util::tManagedConstCharPointer name) : 
    182     tRegisteredConversionOperation(std::move(name), cCONVERSION_OPTION) 
     182    tRegisteredConversionOperation(std::move(name), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    183183  { 
    184184  } 
    185185  template <size_t Tchars> 
    186186  tReturnFunctionConversionOperation(const char(&name)[Tchars]) : 
    187     tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), cCONVERSION_OPTION) 
     187    tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    188188  { 
    189189  } 
  • definition/tVoidFunctionConversionOperation.h

    r0 r2  
    9393   */ 
    9494  tVoidFunctionConversionOperation(util::tManagedConstCharPointer name) : 
    95     tRegisteredConversionOperation(std::move(name), cCONVERSION_OPTION) 
     95    tRegisteredConversionOperation(std::move(name), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    9696  {} 
    9797  template <size_t Tchars> 
    9898  tVoidFunctionConversionOperation(const char(&name)[Tchars]) : 
    99     tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), cCONVERSION_OPTION) 
     99    tRegisteredConversionOperation(util::tManagedConstCharPointer(name, false), tDataType<TSource>(), tDataType<TDestination>(), &cCONVERSION_OPTION) 
    100100  { 
    101101  } 
  • tRegisteredConversionOperation.cpp

    r0 r2  
    8888} 
    8989 
    90 tRegisteredConversionOperation::tRegisteredConversionOperation(util::tManagedConstCharPointer name, const tConversionOption& single_conversion_option, const tParameterDefinition& parameter) : 
    91   tRegisteredConversionOperation(std::move(name), single_conversion_option.source_type, single_conversion_option.destination_type, &single_conversion_option, parameter) 
    92 { 
    93 } 
    94  
    9590tRegisteredConversionOperation::tRegisteredConversionOperation() : 
    9691  name(cSTATIC_CAST_NAME, false), 
  • tRegisteredConversionOperation.h

    r0 r2  
    273273 
    274274  /*! 
    275    * \param name Name of conversion operation (must be unique for every supported combination of source and destination types) 
    276    * \param single_conversion_option Single conversion option 
    277    * \param parameter Any parameter of conversion operation (optional) 
    278    */ 
    279   tRegisteredConversionOperation(util::tManagedConstCharPointer name, const tConversionOption& single_conversion_option, const tParameterDefinition& parameter = tParameterDefinition()); 
    280  
    281   /*! 
    282275   * Adds this operation to list of operations that are automatically deleted on shutdown. 
    283276   * This should only be done with operations allocated via new() and not deleted elsewhere. 
Note: See TracChangeset for help on using the changeset viewer.