Hi Dave,
There is a fine line between Generic Programming in general and metaprogramming. My personal feeling is that Andrei's works -- and PBD in general -- are good instances for Generic Programming. Yet, I don't seem to register them per se as metaprogramming. I understand that this might be a very personal viewpoint. I say this because I had a try and couldn't quite put my reasons into words. Anyhow, thank you for reminding me of Andrei's Visitor implementations. Other examples (outside his book)?
TIA,--Hossein
--- On Sun, 4/9/11, Dave Abrahams
Dear all, I am looking for problems a reasonable design for solving which requires mixing (template/preprocessor) metaprogramming and multiple inheritance, say for a single class. In particular, has any part of the Boost library been designed with this mixture? TIA,--Hossein
The classic example is the implementation of a visitor. See Alexandrescu's "Modern C++ Design" for an extensive discussion. -- Dave Abrahams BoostPro Computing http://www.boostpro.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users