From: Wolfgang Bangerth Date: Wed, 15 Dec 2010 15:38:12 +0000 (+0000) Subject: Avoid a warning when instantiating Tensor<1,0>. X-Git-Tag: v8.0.0~4690 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58084037d70f6d64bd349e8921a562ef09cccafb;p=dealii.git Avoid a warning when instantiating Tensor<1,0>. git-svn-id: https://svn.dealii.org/trunk@22969 0785d39b-7218-0410-832d-ea1e28bc413d --- 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