From 3bdd863ce777638e96bc5a3ff89abe643b72bffc Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 14 Aug 2017 07:22:30 +0200 Subject: [PATCH] Avoid warnings related to deprecation of types_are_equal --- doc/news/changes/minor/20170814DavidWells | 2 ++ include/deal.II/base/template_constraints.h | 20 ++------------------ 2 files changed, 4 insertions(+), 18 deletions(-) create mode 100644 doc/news/changes/minor/20170814DavidWells diff --git a/doc/news/changes/minor/20170814DavidWells b/doc/news/changes/minor/20170814DavidWells new file mode 100644 index 0000000000..c0e6373dc2 --- /dev/null +++ b/doc/news/changes/minor/20170814DavidWells @@ -0,0 +1,2 @@ +Deprecated: types_are_equal has been deprecated in favor of std::is_same. +
(David Wells, 2017/08/14) diff --git a/include/deal.II/base/template_constraints.h b/include/deal.II/base/template_constraints.h index 1ea8046798..4385d1a003 100644 --- a/include/deal.II/base/template_constraints.h +++ b/include/deal.II/base/template_constraints.h @@ -297,25 +297,9 @@ namespace internal * instead of this class. */ template -struct types_are_equal -{ - static const bool value = false; -} DEAL_II_DEPRECATED; - +struct types_are_equal : std::is_same +{} DEAL_II_DEPRECATED; -/** - * Partial specialization of the general template for the case that both - * template arguments are equal. See the documentation of the general template - * for more information. - * - * @deprecated Use the standard library type trait std::is_same - * instead of this class. - */ -template -struct types_are_equal -{ - static const bool value = true; -} DEAL_II_DEPRECATED; /** -- 2.39.5