]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compiling and avoid warnings in tests
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 8 Dec 2018 11:11:03 +0000 (12:11 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Thu, 24 Jan 2019 07:44:11 +0000 (08:44 +0100)
source/differentiation/ad/ad_drivers.cc

index a0447c8d7702f342c5ed004dcd1ad006eb063e3b..3d29e40a5bddbea6bf4fe1ffb50dad69d2538ea4 100644 (file)
@@ -893,8 +893,7 @@ namespace Differentiation
       double,
       typename std::enable_if<ADNumberTraits<ADNumberType>::type_code ==
                               NumberTypes::adolc_taped>::type>::
-      is_registered_tape(
-        const typename Types<ADNumberType>::tape_index tape_index) const
+      is_registered_tape(const typename Types<ADNumberType>::tape_index) const
     {
       AssertThrow(false, ExcRequiresADOLC());
       return false;
@@ -943,6 +942,8 @@ namespace Differentiation
       AssertThrow(false, ExcRequiresADOLC());
     }
 
+
+    template <typename ADNumberType>
     std::vector<typename Types<ADNumberType>::tape_index>
     TapedDrivers<
       ADNumberType,
@@ -1028,8 +1029,7 @@ namespace Differentiation
                  double,
                  typename std::enable_if<
                    ADNumberTraits<ADNumberType>::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 <typename ADNumberType>
-    TapedDrivers<
+    typename TapedDrivers<
       ADNumberType,
       double,
       typename std::enable_if<ADNumberTraits<ADNumberType>::type_code ==
@@ -1082,6 +1082,8 @@ namespace Differentiation
       AssertThrow(false, ExcRequiresADOLC());
     }
 
+
+    template <typename ADNumberType>
     void
     TapedDrivers<
       ADNumberType,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.