From: Daniel Arndt Date: Mon, 14 Aug 2017 05:22:30 +0000 (+0200) Subject: Avoid warnings related to deprecation of types_are_equal X-Git-Tag: v9.0.0-rc1~1250^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bdd863ce777638e96bc5a3ff89abe643b72bffc;p=dealii.git Avoid warnings related to deprecation of types_are_equal --- 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; /**