From b9c74286192892fa4711a9885f9739ac90abe14c Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 10 Apr 2020 16:08:04 +0100 Subject: [PATCH] functionObjectList::wordAndDictionary: Added null constructor for pre-7 gcc versions Resolves bug-report https://bugs.openfoam.org/view.php?id=3479 --- .../functionObjects/functionObjectList/wordAndDictionary.C | 6 ++++++ .../functionObjects/functionObjectList/wordAndDictionary.H | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/OpenFOAM/db/functionObjects/functionObjectList/wordAndDictionary.C b/src/OpenFOAM/db/functionObjects/functionObjectList/wordAndDictionary.C index 964a274b63..ad662a4d2b 100644 --- a/src/OpenFOAM/db/functionObjects/functionObjectList/wordAndDictionary.C +++ b/src/OpenFOAM/db/functionObjects/functionObjectList/wordAndDictionary.C @@ -27,6 +27,12 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // +Foam::wordAndDictionary::wordAndDictionary() +: + Tuple2() +{} + + Foam::wordAndDictionary::wordAndDictionary(Istream& is) : Tuple2() diff --git a/src/OpenFOAM/db/functionObjects/functionObjectList/wordAndDictionary.H b/src/OpenFOAM/db/functionObjects/functionObjectList/wordAndDictionary.H index c7a1ca3b20..d293f07dbb 100644 --- a/src/OpenFOAM/db/functionObjects/functionObjectList/wordAndDictionary.H +++ b/src/OpenFOAM/db/functionObjects/functionObjectList/wordAndDictionary.H @@ -89,6 +89,9 @@ public: //- Inherit tuple constructors using Tuple2::Tuple2; + //- Construct null + wordAndDictionary(); + //- Construct from Istream wordAndDictionary(Istream&);