I missed Nils' code, but I suspect that a a template-based approach would avoid one shortcoming of your approach: your io::IOClass uses 6 bytes of RAM storage for each instance, which would probably be unacceptable in many cases. A template approach might use none, since the I/O addresses are compile-time constants and will simply be inlined each time.
Jeff
pgpAu6rpo6ttW.pgp
Description: PGP signature
_______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list