Skip to content
Snippets Groups Projects
Commit bcb67c06 authored by Elias Pipping's avatar Elias Pipping
Browse files

[Cleanup] Use std::is_base_of and std::enable_if

parent d9aaaf09
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@
#include "enumparser.hh"
template <class Enum>
typename Dune::enable_if<
!Dune::IsBaseOf<Dune::NotImplemented, StringToEnum<Enum>>::value,
typename std::enable_if<
!std::is_base_of<Dune::NotImplemented, StringToEnum<Enum>>::value,
std::istream &>::type
operator>>(std::istream &lhs, Enum &e) {
std::string s;
......
......@@ -3,7 +3,7 @@
// Copyright Carsten Graeser 2012
#include <dune/common/typetraits.hh>
#include <type_traits>
#include <dune/solvers/solvers/solver.hh>
......@@ -28,8 +28,8 @@ template <> struct StringToEnum<Config::PatchType> {
};
template <class Enum>
typename Dune::enable_if<
!Dune::IsBaseOf<Dune::NotImplemented, StringToEnum<Enum>>::value,
typename std::enable_if<
!std::is_base_of<Dune::NotImplemented, StringToEnum<Enum>>::value,
std::istream &>::type
operator>>(std::istream &lhs, Enum &e);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment