Sunday, May 9, 2010

The curse of the C++ template class

So I thought I was all clever writing a Queue class using C++ and templates. But now that means everything that uses it has to be in C++ rather than C, and that's coming around to bite me with all these ISRs that want access to objects' private fields, and it's just a mess.

Moral of the story: for embedded applications, code in C.

No comments:

Post a Comment