![]() ![]() Since boost documentation is arguably one of the best for metaprograming you could go that route, especially since it complements doxygen - you can reuse your existing markup.Īlthough it does not exactly answer your question, you might be interested in recent clang developments. The result is more informative than for libstdc++ but obviously involves a little more work from the dev. On the other hand, boost uses its own tools: QuickBook uses standalone text files and doxygen documented source to generate BoostBook markup (extension of DocBook) which in turns generates html/pdf. As an illustration,GNU STL (libstdc++) uses doxygen but does a poor job of documenting metaprograming in the STL. I don't think it is possible use document advanced template constructs with doxygen since it was originally designed for the object oriented paradigm and not metaprograming. Typedef typename fusion::result_of::as_map::type type / This is why generate_callback_map exists. / It's a good idea to document all of your typedefs. ![]() / Usage: Use generate_callback_map::type to. / metafunction for generation of a map of message types to What you are missing is documentation on your typedefs and documentation on how to use this template. Your generate_callback_map just looks like a C++03 stand-in for a template typedef. Metafunctions are hairy beasts that take advantage of SFINAE to do something that C++ wasn't originally intended to do (e.g., reflection). There are just typedefs.īTW, your sample code doesn't look like a metafunction. For return values, There is no return here. Use for template arguments, for function arguments. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |