From: Wolfgang Bangerth Date: Tue, 4 Oct 2016 20:17:13 +0000 (-0600) Subject: Do not use 'typename' outside templates. X-Git-Tag: v8.5.0-rc1~607^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3192%2Fhead;p=dealii.git Do not use 'typename' outside templates. --- diff --git a/tests/base/product_type_05.cc b/tests/base/product_type_05.cc index aaa6bd8bbd..4dab009513 100644 --- a/tests/base/product_type_05.cc +++ b/tests/base/product_type_05.cc @@ -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(); - deallog << typename ProductType::type(2.345)*typename ProductType::type(3.456) + deallog << ProductType::type(2.345)*ProductType::type(3.456) << ' ' - << typename ProductType::type(2.345*3.456) + << ProductType::type(2.345*3.456) << std::endl; check,std::complex,std::complex >(); - deallog << (typename ProductType,std::complex >::type(2.345, 1.23) * - typename ProductType,std::complex >::type(3.456, 2.45)) + deallog << (ProductType,std::complex >::type(2.345, 1.23) * + ProductType,std::complex >::type(3.456, 2.45)) << ' ' - << (typename ProductType,std::complex >::type + << (ProductType,std::complex >::type (std::complex(2.345, 1.23) * std::complex(3.456, 2.45))) << std::endl;