From c61d3e5501cf0081d9e055f9314bc3e9d21ac2b0 Mon Sep 17 00:00:00 2001 From: kanschat Date: Thu, 15 Oct 2009 22:20:19 +0000 Subject: [PATCH] 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 --- tests/base/reference.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 "; -- 2.39.5