Skip to content
Snippets Groups Projects

FS#1512 Replace type traits by their standard versions

Closed Felix Gruber requested to merge felix.gruber/dune-common:type_traits into master
  1. Jan 19, 2016
    • Felix Gruber's avatar
      [bugfix] GCC was giving too many deprecation warnings for enable_if · a036590d
      Felix Gruber authored
      I still don't understand why, but GCC was spilling deprecation warnings
      for Dune::enable_if even if we were only using std::enable_if.
      
      Thus I removed the deprecation of the enable_if struct and only
      deprecate the type within. That should still be enough as this
      deprecation warning gets triggered when enable_if is used to aid in
      overload resolution and the boolean parameter of enable_if is true.
      a036590d
    • Felix Gruber's avatar
      [bugfix] fix Dune::enable_if · 52611705
      Felix Gruber authored
      My previous wrapper implementation around std::enable_if didn't work
      when B was false, as type was then defined to a type that was SFINAEd
      away.
      52611705
  2. Jan 15, 2016
    • Felix Gruber's avatar
      [cleanup] make deprecation work on clang · 30b1fb22
      Felix Gruber authored
      Using inheritance for the deprecated wrapper class unfortunately only
      worked on GCC, so we had to define the type or value of the type trait
      explicitly to deprecate it.
      30b1fb22
  3. Jan 12, 2016
  4. Dec 21, 2015
Loading