4 ms·
> one time I wanted to write generic printers. E.g. printer of any type which support C++ iterators. How would that work for types where the required functions
by leni536 2y ago
> one time I wanted to write generic printers. E.g. printer of any type which support C++ iterators.
How would that work for types where the required functions are not instantiated, or not instantiated as a standalone function? Most iterators' operator++ are inlined and probably never instantiated as a distinct function.
- feelamee 2y ago> How would that work for types where the required functions are not instantiated Obviously, it will not. But why not to try?) > Most iterators' operator++ are inlined Sure, it's sad. But I'm still think that such feature - calling C++ functions from Python API - can be useful.