Use an enum class.
Merge pull request #288 from pleroy/EnumClass

Use an enum class for the parameter of Frame to nicely avoid clashes.