3 ms·
They use templates like Signal0<>, Signal1<T1>, Signal2<T1,T2>, etc. with fixed argument length instead of a more uniform solution like variadic templates. The
by static_noise 11y ago
They use templates like Signal0<>, Signal1<T1>, Signal2<T1,T2>, etc. with fixed argument length instead of a more uniform solution like variadic templates.
The code in the library is pretty old and I suppose that an update with regards to C++11/14/17 would make it much better in every regard.
- kentonv 11y agoAlso under C++11, the availability of lambdas probably completely changes how you'd design this sort of thing.
- john_fushi 11y agoGiven that the comments talk about compatibility issues with DOS and some DSPs I believe it is not the direction pbhogan wants to take.
- static_noise 11y agoAs long as you can use a recent compiler there shouldn't be problems. The resulting assembler code should be the same.
- userbinator 11y agoA C++11 compiler for DOS?
- okasaki 11y agohttp://www.delorie.com/pub/djgpp/mini-faq.txt http://www.delorie.com/pub/djgpp/mini-faq.txt gcc 5.3 (& co) for DOS!
- walrus 11y agoFor DSPs, there's typically only a single, proprietary compiler available, and supporting the latest C++ standards isn't high priority for the companies making them.
- bnastic 11y agoWhen the original article was written (and I remember reading it many, many moons ago) variadic templates were not yet available. And this project seems to have been last updated 4 years ago, so a lot of boilerplate templates is understandable.