Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/npes87184/exercise
Personal exercise.
https://github.com/npes87184/exercise
Last synced: about 1 month ago
JSON representation
Personal exercise.
- Host: GitHub
- URL: https://github.com/npes87184/exercise
- Owner: npes87184
- Created: 2017-03-11T11:19:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-05T02:05:38.000Z (almost 7 years ago)
- Last Synced: 2024-10-26T06:04:09.878Z (3 months ago)
- Language: C++
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Exercise
========## [enum test](https://github.com/npes87184/Exercise/tree/master/c_cpp/enum_test)
This example shows how to test enum list in compile time. It will compile error, if the enum list is not synced with look up table. You can add look up table in anywhere you want to use the enum list to ensure if someone adds a new entry of enum, he(she) should check the code which uses this enum.