Explicitly create TRuntimeFormat if you wish to use runtime/non-literal value as format.
| 15 | // Explicitly create TRuntimeFormat if you wish to |
| 16 | // use runtime/non-literal value as format. |
| 17 | class TRuntimeFormat |
| 18 | { |
| 19 | public: |
| 20 | explicit TRuntimeFormat(TStringBuf fmt); |
| 21 | |
| 22 | TStringBuf Get() const noexcept; |
| 23 | |
| 24 | private: |
| 25 | TStringBuf Format_; |
| 26 | }; |
| 27 | |
| 28 | // This class used to properly bind to |
| 29 | // string literals and allow compile-time parsing/checking |