QuoteOriginally posted by: OOglesbyAnother issue is my skill level and generic programming. I understand and can write generic code, but I am certainly not at the level required for boost-level work. Can somebody please point me to some simple yet non-trival examples of traits/proxies for adapting different interfaces so that I can become more familiar with the techniques?Yes, I can! :-)I can even do better than that and point you to a great lecture series on these examples -- given below in the suggested studying order Background / prerequisites: // I'm assuming you might probably skip 1-9 if you're familiar with standard-level C++, but feel free to look at the TOC [STL Introduction lecture links] to verify that you are:Stephan T Lavavej's introductory series on the STLhttp://channel9.msdn.com/Shows/Going+Deep/C9-Lectures-Introduction-to-STL-with-Stephan-T-LavavejIf you haven't before, you might also consider watching Stepanov's talk on generic programming:Alexander Stepanov: STL and Its Design Principleshttp://www.stepanovpapers.com/stepanov-abstrac ... /stl.pdfC9
Lectures: Stephan T. Lavavej - Standard Template Library (STL), 10 of 10introduction to type traitshttp://channel9.msdn.com/Shows/Going+Deep/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-10-of-10C9 Lectures: Stephan T Lavavej - Advanced STL, 2 of nimplementation strategies for various STL algorithms, employing the goodness of template meta-programming and type traitshttp://channel9.msdn.com/Shows/Going+Deep/C9-Lectures-Stephan-T-Lavavej-Advanced-STL-2-of-nC9 Lectures: Stephan T Lavavej - Advanced STL, 5 of nBoost Libraryhttp://channel9.msdn.com/Shows/Going+Deep/C9-Lectures-Stephan-T-Lavavej-Advanced-STL-5-of-nC9 Lectures: Stephan T Lavavej - Advanced STL, 6 of ndeveloping a generic mechanism for printing out STL containers:http://channel9.msdn.com/Shows/Going+De ... f-nPerhaps
a good exercise along the lines of the last lecture is "developing a generic mechanism for accessing QFCL matrices"?BTW, the standard book reference is Andrei Alexandrescu (2001) "Modern C++ Design: Generic Programming and Design Patterns Applied", but just for introduction I'd give the lectures a go -- personally I think all of them were very good and helpful!