]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Smartpointer got a second template argument and ALL deal.II Smartpointers now identif...
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 15 Oct 2009 22:20:19 +0000 (22:20 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 15 Oct 2009 22:20:19 +0000 (22:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@19895 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/reference.cc

index eb6eacd22c85e3f002213ace383f82b212afd276..82fe16de11a15dedf06e0c4ab47f45c8d435325e 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 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
@@ -55,11 +55,11 @@ int main()
       Test a("A");
       const Test& b("B");
       
-      SmartPointer<Test>       r(&a, "Test R");
-      SmartPointer<const Test> s(&a, "const Test S");
-//  SmartPointer<Test>       t=&b;    // this one should not work
-      SmartPointer<Test>       t(const_cast<Test*>(&b), "Test T");
-      SmartPointer<const Test> u(&b, "const Test");
+      SmartPointer<Test,Test>       r(&a, "Test R");
+      SmartPointer<const Test,Test> s(&a, "const Test S");
+//  SmartPointer<Test,Test>       t=&b;    // this one should not work
+      SmartPointer<Test,Test>       t(const_cast<Test*>(&b), "Test T");
+      SmartPointer<const Test,Test> u(&b, "const Test");
       
       
       deallog << "a ";

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.