From: Wolfgang Bangerth Date: Wed, 18 Jan 2023 00:49:55 +0000 (-0700) Subject: Declare the existence of explicit instantiations. X-Git-Tag: v9.5.0-rc1~632^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1cf4efcc87207e57ff7516748522dd74ae09c31;p=dealii.git Declare the existence of explicit instantiations. --- diff --git a/include/deal.II/hp/mapping_collection.h b/include/deal.II/hp/mapping_collection.h index 650a54d296..c1c22feef7 100644 --- a/include/deal.II/hp/mapping_collection.h +++ b/include/deal.II/hp/mapping_collection.h @@ -152,6 +152,7 @@ namespace hp }; + /* --------------- inline functions ------------------- */ template @@ -180,6 +181,19 @@ namespace hp StaticMappingQ1::mapping_collection = MappingCollection(MappingQ1{}); + +#ifndef DOXYGEN + // Declare the existence of explicit instantiations of the class + // above to avoid certain warnings issues by clang and + // newer (LLVM-based) Intel compilers: + extern template struct StaticMappingQ1<1, 1>; + extern template struct StaticMappingQ1<1, 2>; + extern template struct StaticMappingQ1<1, 3>; + extern template struct StaticMappingQ1<2, 2>; + extern template struct StaticMappingQ1<2, 3>; + extern template struct StaticMappingQ1<3, 3>; +#endif + } // namespace hp