]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not use 'typename' outside templates. 3192/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 4 Oct 2016 20:17:13 +0000 (14:17 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 4 Oct 2016 20:17:13 +0000 (14:17 -0600)
tests/base/product_type_05.cc

index aaa6bd8bbd29e3314689a5cdf8055fd1d3ecd909..4dab009513927b65e4dfe2c6317ec99da0a5cff4 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2015 by the deal.II authors
+// Copyright (C) 2015, 2016 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -47,16 +47,16 @@ int main()
   deallog.threshold_double(1.e-10);
 
   check<double,double,double>();
-  deallog << typename ProductType<double,double>::type(2.345)*typename ProductType<double,double>::type(3.456)
+  deallog << ProductType<double,double>::type(2.345)*ProductType<double,double>::type(3.456)
           << ' '
-          << typename ProductType<double,double>::type(2.345*3.456)
+          << ProductType<double,double>::type(2.345*3.456)
           << std::endl;
 
   check<std::complex<double>,std::complex<double>,std::complex<double> >();
-  deallog << (typename ProductType<std::complex<double>,std::complex<double> >::type(2.345, 1.23) *
-              typename ProductType<std::complex<double>,std::complex<double> >::type(3.456, 2.45))
+  deallog << (ProductType<std::complex<double>,std::complex<double> >::type(2.345, 1.23) *
+              ProductType<std::complex<double>,std::complex<double> >::type(3.456, 2.45))
           << ' '
-          << (typename ProductType<std::complex<double>,std::complex<double> >::type
+          << (ProductType<std::complex<double>,std::complex<double> >::type
               (std::complex<double>(2.345, 1.23) *
                std::complex<double>(3.456, 2.45)))
           << std::endl;

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.