A library that attempts to provide compile-time safety around ubiquitous types.
Many years ago, there was a post from Joel On Software that convinced me Hungarian notation is good, provided that it's used correctly. Since C++ provides strong types though, I've always toyed with the idea of writing code to promote those code smells (the way Joel describes) to compilation errors.
This library is mostly for experimentation, although I expect it's suitable for production use.
biztonsag is a header-only library. It's designed to be installed via CMake.
$ cd /path/to/biztonsag
$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .
$ cmake --build . --target install
Unit tests are avialable (requires GTest).
$ cmake --build . --target test
Because biztonsag is an attempt to get the type-safety benefits of Hungarian notation at compile-time, I enlisted Google Translate. While "típusú biztonság" is a bit much, the second word fits my goals:
- biztonság
- security, safety, behavior, behaviour