COMP: scalarRanges construct null for gcc-48

This commit is contained in:
Mark Olesen
2018-12-17 13:36:50 +01:00
parent 919fa3a541
commit 3f4289c238
2 changed files with 9 additions and 0 deletions

View File

@ -61,6 +61,9 @@ public:
//- Inherit constructors from List of scalarRange
using List<scalarRange>::List;
//- Construct null
inline scalarRanges();
//- Construct by parsing string for scalar ranges
// The individual items are space, comma or semicolon delimited.
// Optionally report when any range failed to parse

View File

@ -25,6 +25,12 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
inline Foam::scalarRanges::scalarRanges()
:
List<scalarRange>()
{}
inline Foam::scalarRanges::scalarRanges(const std::string& str, bool verbose)
:
List<scalarRange>(scalarRanges::parse(str, verbose))