Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Jorrit Fahlke's avatar
    cfdd54ea
    [Int2Type] Deprecate in favour of integral_constant. · cfdd54ea
    Jorrit Fahlke authored
    Also change the member enumerator value into a member constant "static const
    int value", since deprecation of the class does not work in many cases, and
    any attempt to deprecate an enumerator will make the compiler barf.
    
    In addition, deprecate the default constructor.  That should catch most cases
    on recent compilers.
    
    Derive from integral_constant<int,...> so classes using this to implement a
    replacement for the forbidden partial specializations of functions don't have
    to provide compatibility declarations during the migration.
    
    [[Imported from SVN: r6274]]
    cfdd54ea
    History
    [Int2Type] Deprecate in favour of integral_constant.
    Jorrit Fahlke authored
    Also change the member enumerator value into a member constant "static const
    int value", since deprecation of the class does not work in many cases, and
    any attempt to deprecate an enumerator will make the compiler barf.
    
    In addition, deprecate the default constructor.  That should catch most cases
    on recent compilers.
    
    Derive from integral_constant<int,...> so classes using this to implement a
    replacement for the forbidden partial specializations of functions don't have
    to provide compatibility declarations during the migration.
    
    [[Imported from SVN: r6274]]