From: David A. <da...@bo...> - 2003-03-10 16:56:07
|
David Abrahams <da...@bo...> writes: The literal text fragment below: In keeping with our quest for polymorphism, ``lambda`` is also a unary metafunction returning a metafunction class. In other words, we could have written .. parsed-literal:: template <class X> struct times4 : twice<**typename mpl::lambda<mpl::plus<_1,_1> >::type**, X> {}; Comes out as: In keeping with our quest for polymorphism, \texttt{lambda} is also a unary metafunction returning a metafunction class. In other words, we could have written \begin{quote} \begin{verbatim} template <class X> struct times4 : twice<\textbf{typename mpl::lambda<mpl::plus<_1,_1> >::type}, X> {}; \end{verbatim} \end{quote} Which in turn is displayed as: In keeping with our quest for polymorphism, lambda is also a unary metafunction returning a metafunction class. In other words, we could have written template <class X> struct times4 : twice<\textbf{typename mpl::lambda<mpl::plus<_1,_1> >::type}, X> {}; Note the appearance of TeX directives in the output. I'm beginning to wonder about using this toolchain to get from ReST->PDF. Maybe ReST->DocBook->PDF is a better bet. -- Dave Abrahams Boost Consulting www.boost-consulting.com |