Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Martin Nolte's avatar
    a35de714
    only use std::integral_constant, if it conforms to the C++11 standard · a35de714
    Martin Nolte authored
    C++11 requires a cast operator from integral_constant< T, v > to T. As far as I
    could make out, no gcc version provides this cast in <tr1/type_traits> and only
    gcc >= 4.6 provides it in <type_traits>. Therefore, the configure check now tests
    for the cast operator only in <type_traits>.
    
    Note: Our drop-in replacement conforms to the standard in the above-mentioned
    sense.
    
    [[Imported from SVN: r6992]]
    a35de714
    History
    only use std::integral_constant, if it conforms to the C++11 standard
    Martin Nolte authored
    C++11 requires a cast operator from integral_constant< T, v > to T. As far as I
    could make out, no gcc version provides this cast in <tr1/type_traits> and only
    gcc >= 4.6 provides it in <type_traits>. Therefore, the configure check now tests
    for the cast operator only in <type_traits>.
    
    Note: Our drop-in replacement conforms to the standard in the above-mentioned
    sense.
    
    [[Imported from SVN: r6992]]