Changeset 126:6333356d4990 in rrlib_rtti


Ignore:
Timestamp:
05.02.2020 08:53:43 (3 weeks ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
17.03
Phase:
public
Message:

Adds internal IS_ARITHMETIC trait flag to data types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • type_traits.h

    r113 r126  
    394394static const int cHAS_VIRTUAL_DESTRUCTOR = 1 << 24; 
    395395static const int cIS_DEFAULT_CONSTRUCTION_ZERO_MEMORY = 1 << 25; 
     396static const int cIS_ARITHMETIC = 1 << 26; 
    396397 
    397398} // namespace 
     
    433434    (std::is_trivially_destructible<T>::value ? trait_flags::cHAS_TRIVIAL_DESTRUCTOR : 0) | 
    434435    (IsDefaultConstructionZeroMemory<T>::value ? trait_flags::cIS_DEFAULT_CONSTRUCTION_ZERO_MEMORY : 0) | 
     436    (std::is_arithmetic<T>::value ? trait_flags::cIS_ARITHMETIC : 0) | 
    435437    (detail::InheritsUnderlyingTypeElementAccessOperations<T>::value ? trait_flags::cINHERITS_UNDERLYING_TYPE_ELEMENT_ACCESS_OPERATIONS : 0) 
    436438    ; 
Note: See TracChangeset for help on using the changeset viewer.