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
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -113,7 +113,7 @@ public: ...@@ -113,7 +113,7 @@ public:
//- Return the name of the given enumeration element //- Return the name of the given enumeration element
const char* operator[](const Enum e) const 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