mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-08 01:36:44 +08:00
To avoid paying the huge penalty of including iostream and string for users that don't need those headers, and to avoid creating a second, optional header file, I resorted to defining the operators as templates to prevent type checking until the user tries to actually use them. The stream types and strings are wrapped in a metafunction that depends on the template parameter. This is basically a hack, but it seems to work. |
||
|---|---|---|
| .. | ||
| cxxtest | ||
| expect | ||
| link | ||
| performance | ||
| Makefile | ||
| test.py | ||