Changeset 78:f02dacafad29 in rrlib_si_units


Ignore:
Timestamp:
13.10.2020 13:43:44 (9 days ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
17.03
Phase:
public
Message:

Adds conversion operations from float quantities to their double counterparts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtti.h

    r73 r78  
    115115}; 
    116116 
     117template <typename TUnit> 
     118struct AutoRegister<si_units::tQuantity<TUnit, float>> 
     119{ 
     120  static int Register() 
     121  { 
     122    conversion::tStaticCastOperation::Register<si_units::tQuantity<TUnit, float>, si_units::tQuantity<TUnit, double>, true, true>(); 
     123    return 0; 
     124  } 
     125}; 
     126 
     127template <typename TUnit, typename TUnitPolicy, typename TAutoWrapPolicy> 
     128struct AutoRegister<si_units::tQuantity<TUnit, math::tAngle<float, TUnitPolicy, TAutoWrapPolicy>>> 
     129{ 
     130  static int Register() 
     131  { 
     132    conversion::tStaticCastOperation::Register<si_units::tQuantity<TUnit, math::tAngle<float, TUnitPolicy, TAutoWrapPolicy>>, si_units::tQuantity<TUnit, math::tAngle<double, TUnitPolicy, TAutoWrapPolicy>>, true, true>(); 
     133    return 0; 
     134  } 
     135}; 
     136 
     137 
    117138//---------------------------------------------------------------------- 
    118139// Explicit template instantiation 
Note: See TracChangeset for help on using the changeset viewer.