3 ms·
Nice work. Thanks for releasing it as free software. If I understand the design correctly, one can provide a custom argument parser by specializing lexical_cas
by choeger 5y ago
Nice work. Thanks for releasing it as free software.
If I understand the design correctly, one can provide a custom argument parser by specializing lexical_cast?
- chrisaycock 5y agoYes, in theory. I've never tried to specialize lexical_cast since it's a Boost library and likely has its own assumptions. But I imagine it's possible if you want to handle things like arrays or user-defined types.
- gpderetta 5y agoLexical cast, aside a couple of specializations, is just a wrapper over iostream, so probably you only need to define operator>> and <<.