]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a class internal::bool2type
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Mar 2009 04:09:30 +0000 (04:09 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Mar 2009 04:09:30 +0000 (04:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@18522 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/template_constraints.h

index 3043d667e052f4fcdcda3fb203971311baf0ad91..9c040a0f690611451c0fb75c60e0deef9a55081a 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2003, 2004, 2005, 2006, 2008 by the deal.II authors
+//    Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -207,6 +207,16 @@ namespace internal
   template <int N>
   struct int2type 
   {};
+
+
+/**
+ * The equivalent of the int2type class for boolean arguments.
+ *
+ * @author Wolfgang Bangerth, 2009
+ */
+  template <bool B>
+  struct bool2type
+  {};
 }
 
 

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.