From: David Wells Date: Sun, 7 Jul 2019 00:02:03 +0000 (-0400) Subject: Remove int2type and bool2type. X-Git-Tag: v9.2.0-rc1~1410^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a7af111974b5238f1e588a8d19afc9cebb2fd33;p=dealii.git Remove int2type and bool2type. These were deprecated in 9.0 and are internal anyway. --- diff --git a/include/deal.II/base/template_constraints.h b/include/deal.II/base/template_constraints.h index 0a80621043..63b8f7653f 100644 --- a/include/deal.II/base/template_constraints.h +++ b/include/deal.II/base/template_constraints.h @@ -320,103 +320,6 @@ struct PointerComparison -namespace internal -{ - /** - * A type that is sometimes used for template tricks. For example, in some - * situations one would like to do this: - * - * @code - * template - * class X - * { - * // do something on subdim-dimensional sub-objects of the big - * // dim-dimensional thing (for example on vertices/lines/quads of - * // cells): - * template void f(); - * }; - * - * template - * template <> - * void X::f<0> () - * { - * ...operate on the vertices of a cell... - * } - * - * template void g(X &x) - * { - * x.f (); - * } - * @endcode - * - * The problem is: the language doesn't allow us to specialize - * X::f() without specializing the outer class first. One of - * the common tricks is therefore to use something like this: - * - * @code - * template - * struct int2type - * {}; - * - * template - * class X - * { - * // do something on subdim-dimensional sub-objects of the big - * // dim-dimensional thing (for example on vertices/lines/quads of - * // cells): - * void f(int2type<0>); - * void f(int2type<1>); - * void f(int2type<2>); - * void f(int2type<3>); - * }; - * - * template - * void X::f (int2type<0>) - * { - * ...operate on the vertices of a cell... - * } - * - * template - * void X::f (int2type<1>) - * { - * ...operate on the lines of a cell... - * } - * - * template - * void g(X &x) - * { - * x.f (int2type()); - * } - * @endcode - * - * Note that we have replaced specialization of X::f() by - * overloading, but that from inside the function g(), we can - * still select which of the different X::f() we want based on - * the subdim template argument. - * - * @deprecated Use std::integral_constant instead. - * - * @author Wolfgang Bangerth, 2006 - */ - template - struct DEAL_II_DEPRECATED int2type - {}; - - - /** - * The equivalent of the int2type class for boolean arguments. - * - * @deprecated Use std::integral_constant instead. - * - * @author Wolfgang Bangerth, 2009 - */ - template - struct DEAL_II_DEPRECATED bool2type - {}; -} // namespace internal - - - /** * A type that can be used to determine whether two types are equal. It allows * to write code like