Skip to content
Snippets Groups Projects
Commit ba4dbeda authored by Henry Weller's avatar Henry Weller
Browse files

NamedEnum: Updated to support C++11 scoped enumerations

parent 3d315f09
Branches
Tags
No related merge requests found
......@@ -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)];
}
};
......
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