From 8f99627cf46ff2f108127543622abc570ea79ee2 Mon Sep 17 00:00:00 2001 From: laurence Date: Fri, 5 Apr 2013 15:31:22 +0100 Subject: [PATCH] ENH: Add constructor from FixedList --- src/OpenFOAM/primitives/Pair/Pair.H | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/primitives/Pair/Pair.H b/src/OpenFOAM/primitives/Pair/Pair.H index 3f2de6d090..12c16fc6c3 100644 --- a/src/OpenFOAM/primitives/Pair/Pair.H +++ b/src/OpenFOAM/primitives/Pair/Pair.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -69,6 +69,12 @@ public: second() = s; } + //- Construct from FixedList + inline Pair(const FixedList& fl) + : + FixedList(fl) + {} + //- Construct from Istream inline Pair(Istream& is) :