1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
From 3682e7ad9de75bca8d8d38f5fd80f406a23d3004 Mon Sep 17 00:00:00 2001
From: Henry Weller <http://openfoam.org>
Date: Tue, 8 May 2018 19:57:47 +0100
Subject: Added support for gcc-8.1
--- a/src/OpenFOAM/primitives/VectorSpace/VectorSpace.H
+++ b/src/OpenFOAM/primitives/VectorSpace/VectorSpace.H
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
- \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
+ \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@@ -158,9 +158,6 @@
//- Construct from Istream
VectorSpace(Istream&);
- //- Construct as copy
- inline VectorSpace(const VectorSpace<Form, Cmpt, Ncmpts>&);
-
//- Construct as copy of a VectorSpace with the same size
template<class Form2, class Cmpt2>
inline explicit VectorSpace(const VectorSpace<Form2, Cmpt2, Ncmpts>&);
@@ -189,7 +186,6 @@
inline const Cmpt& operator[](const direction) const;
inline Cmpt& operator[](const direction);
- inline void operator=(const VectorSpace<Form, Cmpt, Ncmpts>&);
inline void operator+=(const VectorSpace<Form, Cmpt, Ncmpts>&);
inline void operator-=(const VectorSpace<Form, Cmpt, Ncmpts>&);
--- a/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H
+++ b/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H
@@ -49,16 +49,6 @@
template<class Form, class Cmpt, direction Ncmpts>
-inline VectorSpace<Form, Cmpt, Ncmpts>::VectorSpace
-(
- const VectorSpace<Form, Cmpt, Ncmpts>& vs
-)
-{
- VectorSpaceOps<Ncmpts,0>::eqOp(*this, vs, eqOp<Cmpt>());
-}
-
-
-template<class Form, class Cmpt, direction Ncmpts>
template<class Form2, class Cmpt2>
inline VectorSpace<Form, Cmpt, Ncmpts>::VectorSpace
(
@@ -285,16 +275,6 @@
}
-template<class Form, class Cmpt, direction Ncmpts>
-inline void VectorSpace<Form, Cmpt, Ncmpts>::operator=
-(
- const VectorSpace<Form, Cmpt, Ncmpts>& vs
-)
-{
- VectorSpaceOps<Ncmpts,0>::eqOp(*this, vs, eqOp<Cmpt>());
-}
-
-
template<class Form, class Cmpt, direction Ncmpts>
inline void VectorSpace<Form, Cmpt, Ncmpts>::operator+=
(
--- a/src/OpenFOAM/db/typeInfo/typeInfo.H
+++ b/src/OpenFOAM/db/typeInfo/typeInfo.H
@@ -88,7 +88,7 @@
{
return dynamic_cast<To&>(r);
}
- catch (std::bad_cast&)
+ catch (const std::bad_cast&)
{
FatalErrorInFunction
<< "Attempt to cast type " << typeid(r).name()
@@ -109,7 +109,7 @@
{
return dynamic_cast<To&>(r);
}
- catch (std::bad_cast&)
+ catch (const std::bad_cast&)
{
FatalIOErrorInFunction(d)
<< "Attempt to cast type " << typeid(r).name()
|