3 ms·
The Agg C++ library defines every class as a template, taking duck-typed parameters: - type of Agg object passed into object - type of "algorithm" used (or si
by jimbo1qaz 8y ago
The Agg C++ library defines every class as a template, taking duck-typed parameters:
- type of Agg object passed into object
- type of "algorithm" used (or similar)
I read matplotlib's Agg C++ backend. Guessing which Class A could be passed into various template parameters in Class B was miserable because of duck typing. And it also broke "jump to definition".
```
Class B<A> {
A a;
}
this->a.foo(), but you don't know what type a is.
```