Add beast::tagged_integer:

* Wraps standard integer types to provide type-safety
 * Named types provide self-documenting semantics
 * Catches programmer errors involving mismatched types at compile time
 * Operators restrict mutation to only safe and meaningful operations
This commit is contained in:
Nik Bougalis
2014-03-21 09:31:15 -07:00
committed by Vinnie Falco
parent c0dfbdc910
commit a45b532664
3 changed files with 402 additions and 0 deletions

View File

@@ -32,3 +32,4 @@
#include "tests/bassert.test.cpp"
#include "tests/empty_base_optimization.test.cpp"
#include "tests/Zero.test.cpp"
#include "tests/tagged_integer.test.cpp"