Changeset 75:13e830408871 in rrlib_si_units


Ignore:
Timestamp:
04.05.2020 23:23:48 (12 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
14.08
Phase:
public
Message:

Fixes compiler warning with gcc 9.3 ('initialization with memset')

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tQuantity.h

    r67 r75  
    100100 
    101101  tQuantity() 
    102   { 
    103     std::memset(this, 0, sizeof(tQuantity)); 
    104   } 
     102    : value() 
     103  {} 
    105104 
    106105  template < typename T, typename = typename std::enable_if < !std::is_base_of<tQuantityBase, T>::value, decltype(TValue(T())) >::type > 
Note: See TracChangeset for help on using the changeset viewer.