| .. | |||
| .vscode | 5 years ago | ||
| .gitignore | 5 years ago | ||
| CMakeLists.txt | 5 years ago | ||
| FixedStrings.cpp | 5 years ago | ||
| FixedStrings.h | 5 years ago | ||
| README.md | 5 years ago | ||
| main.cpp | 5 years ago | ||
| program.cpp | 5 years ago | ||
A fixed-string is a compile time string which is stored in the read only section of the executable and is available as an int. The mapping is fixed at compile time. The retrieval of the static string that the id maps to is thread safe.
This test shows how this can be integrated with cmake to be able to at compile time find all the strings and place them in the strings table.
This could be useful for a fixed size union that contains various types as well as string ids which refer to fixed strings.