From: Guido Kanschat Date: Thu, 15 Oct 2009 22:20:19 +0000 (+0000) Subject: Smartpointer got a second template argument and ALL deal.II Smartpointers now identif... X-Git-Tag: v8.0.0~6892 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24a9420a28d838a8d543321073a6e3e28ab2c169;p=dealii.git Smartpointer got a second template argument and ALL deal.II Smartpointers now identify the pointing class git-svn-id: https://svn.dealii.org/trunk@19895 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/reference.cc b/tests/base/reference.cc index eb6eacd22c..82fe16de11 100644 --- a/tests/base/reference.cc +++ b/tests/base/reference.cc @@ -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 r(&a, "Test R"); - SmartPointer s(&a, "const Test S"); -// SmartPointer t=&b; // this one should not work - SmartPointer t(const_cast(&b), "Test T"); - SmartPointer u(&b, "const Test"); + SmartPointer r(&a, "Test R"); + SmartPointer s(&a, "const Test S"); +// SmartPointer t=&b; // this one should not work + SmartPointer t(const_cast(&b), "Test T"); + SmartPointer u(&b, "const Test"); deallog << "a ";