From: bangerth Date: Sun, 2 Feb 2014 21:53:39 +0000 (+0000) Subject: Help MS VC++ recognize which template function to take. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37d8e12b926d5314af68bf2bcf0642f6dc44ba60;p=dealii-svn.git Help MS VC++ recognize which template function to take. git-svn-id: https://svn.dealii.org/trunk@32378 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/numerics/vector_tools.templates.h b/deal.II/include/deal.II/numerics/vector_tools.templates.h index 3339eaf63b..6b57aea315 100644 --- a/deal.II/include/deal.II/numerics/vector_tools.templates.h +++ b/deal.II/include/deal.II/numerics/vector_tools.templates.h @@ -1,7 +1,7 @@ // --------------------------------------------------------------------- // $Id$ // -// Copyright (C) 2005 - 2013 by the deal.II authors +// Copyright (C) 2005 - 2014 by the deal.II authors // // This file is part of the deal.II library. // @@ -1707,8 +1707,13 @@ namespace VectorTools + // template for the case dim!=1. Since the function has a template argument + // dim_, it is clearly less specialized than the 1d function above and + // whenever possible (i.e., if dim==1), the function template above + // will be used template class M_or_MC> + template class M_or_MC, + int dim_> static inline void do_interpolate_boundary_values (const M_or_MC &mapping, @@ -1716,7 +1721,7 @@ namespace VectorTools const typename FunctionMap::type &function_map, std::map &boundary_values, const ComponentMask &component_mask, - const dealii::internal::int2type) + const dealii::internal::int2type) { const unsigned int dim = DH::dimension; const unsigned int spacedim=DH::space_dimension;