A wrapper for a compile-time partially validated format string
Declared in <util/string.h>
template<unsigned int num_params>
struct ConstevalFormatString;
This struct can be used to enforce partial compile-time validation of format strings, to reduce the likelihood of tinyformat throwing exceptions at run-time. Validation is partial to try and prevent the most common errors while avoiding re-implementing the entire parsing logic.
| Name | Description |
|---|---|
ConstevalFormatString [constructor] | Wrap and partially validate a format string at compile time. |
| Name | Description |
|---|---|
fmt | The wrapped format string. |