MCPcopy Create free account
hub / github.com/changkun/modern-cpp-tutorial / Left

Enum Left

code/2/2.8.cpp:17–20  ·  view source on GitHub ↗

如果两个都定义为 value1 和 value2,将引发重定义错误

Source from the content-addressed store, hash-verified

15
16// 如果两个都定义为 value1 和 value2,将引发重定义错误
17enum Left {
18 left_value1 = 1,
19 left_value2
20};
21enum Right {
22 right_value1 = 1,
23 right_value2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected