mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 16:56:42 +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. |
||
|---|---|---|
| .. | ||
| general.h | ||
| stream.h | ||
| underlying.h | ||