From 3a7af111974b5238f1e588a8d19afc9cebb2fd33 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 6 Jul 2019 20:02:03 -0400 Subject: [PATCH] Remove int2type and bool2type. These were deprecated in 9.0 and are internal anyway. --- include/deal.II/base/template_constraints.h | 97 --------------------- 1 file changed, 97 deletions(-) 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 -- 2.39.5