I\'m having a bit of trouble getting my head around TypeLists or lists of templates.That is: class nulltype{};
Situation I have a template class TIppImage<T> for image of type T. I have singleton class CIppMemoryManager which can store a number of images of different size and type.
I loved Loki\'s C++ HierarchyGenerator and want to do the same in C#. What I want in the end is a class that has a virtual function per argument in a given typelist.
Is Typelist(开发者_JS百科in the sense of Alexandrescu define it) mainly/essentialy useful for generate hierarchy of class (and maybe for class like boost::tuple )
I\'m interested in Typelists . At this URLhttp://drdobbs.com/1844开发者_开发技巧03813 there is a good example of how using Typelists for creating a visitor pattern.
Here\'s what I want to be able to type: class foo : public watchKeys<A, B, C> {}; //Or any list of keys
Here, how do I fix this c++ typelist template compile error? we built a typelist, using the code from modern c++ design.
(from reading chapter 3 of modern c++ design) typelist.hpp: class NullType {}; struct EmptyType {}; template <class T, class U>
I have tried reading: http://www.boost.org/doc/libs/1_41_0/boost/variant.hpp http://www.codeproject.com/KB/cpp/TTLTyplist.aspx