]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warnings related to deprecation of types_are_equal 4833/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 14 Aug 2017 05:22:30 +0000 (07:22 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 14 Aug 2017 16:35:42 +0000 (18:35 +0200)
doc/news/changes/minor/20170814DavidWells [new file with mode: 0644]
include/deal.II/base/template_constraints.h

diff --git a/doc/news/changes/minor/20170814DavidWells b/doc/news/changes/minor/20170814DavidWells
new file mode 100644 (file)
index 0000000..c0e6373
--- /dev/null
@@ -0,0 +1,2 @@
+Deprecated: types_are_equal has been deprecated in favor of std::is_same.
+<br> (David Wells, 2017/08/14)
index 1ea804679844aca4661ec6cbc852df40b8567693..4385d1a0039f362d7b3b76cf1fedf0af9dfa915e 100644 (file)
@@ -297,25 +297,9 @@ namespace internal
  * instead of this class.
  */
 template <typename T, typename U>
-struct types_are_equal
-{
-  static const bool value = false;
-} DEAL_II_DEPRECATED;
-
+struct types_are_equal : std::is_same<T,U>
+{} 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 <code>std::is_same</code>
- * instead of this class.
- */
-template <typename T>
-struct types_are_equal<T,T>
-{
-  static const bool value = true;
-} DEAL_II_DEPRECATED;
 
 
 /**

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.