From 58084037d70f6d64bd349e8921a562ef09cccafb Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 15 Dec 2010 15:38:12 +0000 Subject: [PATCH] Avoid a warning when instantiating Tensor<1,0>. git-svn-id: https://svn.dealii.org/trunk@22969 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/tensor_base.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/deal.II/include/deal.II/base/tensor_base.h b/deal.II/include/deal.II/base/tensor_base.h index 0a1c4bb63d..82addaafae 100644 --- a/deal.II/include/deal.II/base/tensor_base.h +++ b/deal.II/include/deal.II/base/tensor_base.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -1016,6 +1016,15 @@ bool Tensor<1,dim>::operator == (const Tensor<1,dim> &p) const +template <> +inline +bool Tensor<1,0>::operator == (const Tensor<1,0> &) const +{ + return true; +} + + + template inline bool Tensor<1,dim>::operator != (const Tensor<1,dim> &p) const -- 2.39.5