C++ Templated Linked List

This is a discussion on C++ Templated Linked List within the C++ Programming forums, part of the General Programming Boards category; Hi, i&#180;m doing a image/video processing library and i wanted to do a cascade style acquisition, processing and displaying. More ...

You can only do the whole "use templates to build the processing chain thing and avoid virtual calls" thing at compile time, i.e. at construction of the processing chain. By the time you call connect() it's too late.

I'm currently doing something similar with very basic I/O components, and the code is very involved. Also, the resulting types are not pretty. Even a simple chain could have a type like: