From: Daniel Arndt Date: Sat, 8 Dec 2018 11:11:03 +0000 (+0100) Subject: Fix compiling and avoid warnings in tests X-Git-Tag: v9.1.0-rc1~389^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9387ce1dca1bd41683b1f7d89cc7e096fa6a4b39;p=dealii.git Fix compiling and avoid warnings in tests --- diff --git a/source/differentiation/ad/ad_drivers.cc b/source/differentiation/ad/ad_drivers.cc index a0447c8d77..3d29e40a5b 100644 --- a/source/differentiation/ad/ad_drivers.cc +++ b/source/differentiation/ad/ad_drivers.cc @@ -893,8 +893,7 @@ namespace Differentiation double, typename std::enable_if::type_code == NumberTypes::adolc_taped>::type>:: - is_registered_tape( - const typename Types::tape_index tape_index) const + is_registered_tape(const typename Types::tape_index) const { AssertThrow(false, ExcRequiresADOLC()); return false; @@ -943,6 +942,8 @@ namespace Differentiation AssertThrow(false, ExcRequiresADOLC()); } + + template std::vector::tape_index> TapedDrivers< ADNumberType, @@ -1028,8 +1029,7 @@ namespace Differentiation double, typename std::enable_if< ADNumberTraits::type_code == - NumberTypes::adolc_taped>::type>::print(std::ostream &stream) - const + NumberTypes::adolc_taped>::type>::print(std::ostream &) const { AssertThrow(false, ExcRequiresADOLC()); } @@ -1050,7 +1050,7 @@ namespace Differentiation template - TapedDrivers< + typename TapedDrivers< ADNumberType, double, typename std::enable_if::type_code == @@ -1082,6 +1082,8 @@ namespace Differentiation AssertThrow(false, ExcRequiresADOLC()); } + + template void TapedDrivers< ADNumberType,