Changeset 14:f68f39f38f15 in rrlib_rtti_conversion


Ignore:
Timestamp:
05.03.2019 21:47:07 (3 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
15:46fe5261db93, 16:d0e3bbf4e4f2
Phase:
public
Message:

Fixes use of IsImplicitlyConvertible type trait in tStaticCastOperation

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tStaticCastOperation.h

    r9 r14  
    9191    } 
    9292 
    93     static constexpr tStaticCast value = { { tConversionOption(tDataType<TSource>(), tDataType<TDestination>(), StaticCastReferencesSourceWithVariableOffset<TSource, TDestination>::value, &ConvertFirst, &ConvertFinal) }, IsImplicitlyConvertible<TDestination, TSource>::value }; 
     93    static constexpr tStaticCast value = { { tConversionOption(tDataType<TSource>(), tDataType<TDestination>(), StaticCastReferencesSourceWithVariableOffset<TSource, TDestination>::value, &ConvertFirst, &ConvertFinal) }, IsImplicitlyConvertible<TSource, TDestination>::value }; 
    9494    enum { cREGISTER_OPERATION = 1 }; 
    9595  }; 
     
    9999  struct tInstanceDeepCopy 
    100100  { 
    101     static constexpr tStaticCast value = { { tConversionOption(tDataType<TSource>(), tDataType<TDestination>(), 0) }, IsImplicitlyConvertible<TDestination, TSource>::value }; 
     101    static constexpr tStaticCast value = { { tConversionOption(tDataType<TSource>(), tDataType<TDestination>(), 0) }, IsImplicitlyConvertible<TSource, TDestination>::value }; 
    102102    enum { cREGISTER_OPERATION = 0 }; 
    103103  }; 
     
    149149    } 
    150150 
    151     static constexpr tStaticCast value = { { tConversionOption(tDataType<TSource>(), tDataType<TDestination>(), &ConvertFirst, &GetDestinationReference) }, IsImplicitlyConvertible<TDestination&, TSource>::value }; 
     151    static constexpr tStaticCast value = { { tConversionOption(tDataType<TSource>(), tDataType<TDestination>(), &ConvertFirst, &GetDestinationReference) }, IsImplicitlyConvertible<TSource, TDestination&>::value }; 
    152152  }; 
    153153 
  • tStaticCastOperation.hpp

    r9 r14  
    7171 
    7272template <typename TSource, typename TDestination> 
    73 const tStaticCastOperation::tStaticCast tStaticCastOperation::tInstanceReferenceStaticOffset<TSource, TDestination>::value({ tConversionOption(tDataType<TSource>(), tDataType<TDestination>(), ComputePointerSourceOffset()), IsImplicitlyConvertible<TDestination, TSource>::value }); 
     73const tStaticCastOperation::tStaticCast tStaticCastOperation::tInstanceReferenceStaticOffset<TSource, TDestination>::value({ tConversionOption(tDataType<TSource>(), tDataType<TDestination>(), ComputePointerSourceOffset()), IsImplicitlyConvertible<TSource, TDestination>::value }); 
    7474 
    7575template <typename TSource, typename TDestination> 
Note: See TracChangeset for help on using the changeset viewer.