Commit ba4dbeda authored by Henry Weller's avatar Henry Weller
Browse files

NamedEnum: Updated to support C++11 scoped enumerations

parent 3d315f09
......@@ -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-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -113,7 +113,7 @@ public:
//- Return the name of the given enumeration element
const char* operator[](const Enum e) const
{
return names[e];
return names[int(e)];
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment