2

如何使 clang 能够解析公共枚举类构造?

access enum class enumeration-identifier [:underlying-type] { enumerator-list } [var];
4

1 回答 1

2

为我工作。

$ cat main.cpp
enum class Foo { X, Y };

int main() { }
$ c++ --version
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
$ c++ -std=c++11 main.cpp -o main
$ ./main
于 2012-10-31T10:12:55.160 回答