Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66134 - in sandbox/variadic_macro_data/libs/variadic_macro_data/doc: . html html/the_variadic_macro_data_library
From: eldiener_at_[hidden]
Date: 2010-10-21 12:59:55


Author: eldiener
Date: 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
New Revision: 66134
URL: http://svn.boost.org/trac/boost/changeset/66134

Log:
Updated comparison with better formatting.
Text files modified:
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/VMDComparison.qbk | 52 ++++++++++++++++----------------
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_ELEM.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_SIZE.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_ARRAY.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_LIST.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_SEQ.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_TUPLE.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_ARRAY_TO_DATA.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_LIST_TO_DATA.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_SEQ_TO_DATA.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_ELEM.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_REM_CTOR.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_REVERSE.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_SIZE.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_DATA.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_LIST.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_SEQ.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/index.html | 2
   sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/the_variadic_macro_data_library/vmd_comparison.html | 65 ++++++++++++++++++++++-----------------
   19 files changed, 79 insertions(+), 72 deletions(-)

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/VMDComparison.qbk
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/VMDComparison.qbk (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/VMDComparison.qbk 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -1,4 +1,7 @@
 [section:vmd_comparison VMD and Boost PP]
+[template mpara[text]
+'''<para>'''[text]'''</para>'''
+]
 
 Boost PP already has the ability to pass variadic data
 as a single macro argument through any of its data types.
@@ -92,47 +95,44 @@
 macro functionality, a single macro or two macros with slightly different
 names.
 
-* Single macro design:
-
-In our example, if we wish to support a single macro, for compilers that
-both support or do not support variadic macros, the code would be:
-
+# Single macro design:
+'''<para>'''In our example, if we wish to support a single macro, for compilers that
+both support or do not support variadic macros, the code would be:'''</para>'''
+'''<para>'''``
   #if defined(BOOST_NO_VARIADIC_MACROS)
     #define ENDUSER_MACRO(ppSequence) ENDUSER_DETAIL_MACRO(ppSequence)
   #else
     #define ENDUSER_MACRO(...) ENDUSER_DETAIL_MACRO(VMD_DATA_TO_PP_SEQ(__VA_ARGS__))
- #endif
-
-We would now have a single macro which would be used slightly differently by the
+ #endif
+``'''</para>'''
+'''<para>'''We would now have a single macro which would be used slightly differently by the
 end-user depending on whether the compiler being used supported variadic macros
 or not. This might not be best if the end-user's code needed to work for different
 compilers, some of which support variadic macros and some of which do not. In that
-latter case, a dual macro design ( see below ) might be better.
-
-Another solution supporting a single macro is to just ignore variadic macros,
-and then our solution would be:
-
+latter case, a dual macro design ( see below ) might be better.'''</para>'''
+'''<para>'''Another solution supporting a single macro is to just ignore variadic macros,
+and then our solution would be:'''</para>'''
+'''<para>'''``
   #define ENDUSER_MACRO(ppSequence) ENDUSER_DETAIL_MACRO(ppSequence)
-
-We could also ignore any compilers which do not support variadic macros,
-and then our solution would be:
-
+``'''</para>'''
+'''<para>'''We could also ignore any compilers which do not support variadic macros,
+and then our solution would be:'''</para>'''
+'''<para>'''``
   #if !defined(BOOST_NO_VARIADIC_MACROS)
     #define ENDUSER_MACRO(...) ENDUSER_DETAIL_MACRO(VMD_DATA_TO_PP_SEQ(__VA_ARGS__))
   #endif
-
-* Dual macro design:
-
-Perhaps best is to provide two macros with slightly different names. Our solution
-would then be:
-
+``'''</para>'''
+# Dual macro design:
+'''<para>'''Perhaps best is to provide two macros with slightly different names. Our solution
+would then be:'''</para>'''
+'''<para>'''``
     #define ENDUSER_MACRO(ppSequence) ENDUSER_DETAIL_MACRO(ppSequence)
   #if !defined(BOOST_NO_VARIADIC_MACROS)
     #define ENDUSER_MACRO_VM(...) ENDUSER_DETAIL_MACRO(VMD_DATA_TO_PP_SEQ(__VA_ARGS__))
   #endif
-
-Here I have attached an '_VM' to the name of the macro which supports
-variadic macros.
+``'''</para>'''
+'''<para>'''Here I have attached an '_VM' to the name of the macro which supports
+variadic macros.'''</para>'''
   
 In an ideal world, once the new C++ standard is ratified, all compilers
 will support variadic macros, and then we can design a single macro

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_ELEM.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_ELEM.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_ELEM.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_DATA_ELEM(n, ...)</pre></div>
 <div class="refsect1">
-<a name="id936479"></a><h2>Description</h2>
+<a name="id957232"></a><h2>Description</h2>
 <p>n = number of the variadic macro data argument. The number starts from 0 to the number of variadic macro data arguments - 1. The maximum number for n is 63.</p>
 <p>... = variadic macro data.</p>
 <p>returns = the particular macro data argument as specified by n. The argument returned can be any valid preprocessing token. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_SIZE.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_SIZE.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_SIZE.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_DATA_SIZE(...)</pre></div>
 <div class="refsect1">
-<a name="id936440"></a><h2>Description</h2>
+<a name="id957193"></a><h2>Description</h2>
 <p>... = variadic macro data.</p>
 <p>returns = the number of comma-separated variadic macro data arguments being passed to it.</p>
 <p>The value returned can be between 1 and 64. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_ARRAY.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_ARRAY.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_ARRAY.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_DATA_TO_PP_ARRAY(...)</pre></div>
 <div class="refsect1">
-<a name="id936556"></a><h2>Description</h2>
+<a name="id957309"></a><h2>Description</h2>
 <p>... = variadic macro data.</p>
 <p>returns = a Boost PP library array data type.</p>
 <p>You can use the result of this macro whenever you need to pass a Boost PP library array as data to a Boost PP library macro. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_LIST.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_LIST.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_LIST.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_DATA_TO_PP_LIST(...)</pre></div>
 <div class="refsect1">
-<a name="id936594"></a><h2>Description</h2>
+<a name="id957347"></a><h2>Description</h2>
 <p>... = variadic macro data.</p>
 <p>returns = a Boost PP library list data type.</p>
 <p>You can use the result of this macro whenever you need to pass a Boost PP library list as data to a Boost PP library macro. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_SEQ.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_SEQ.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_SEQ.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_DATA_TO_PP_SEQ(...)</pre></div>
 <div class="refsect1">
-<a name="id936632"></a><h2>Description</h2>
+<a name="id957385"></a><h2>Description</h2>
 <p>... = variadic macro data.</p>
 <p>returns = a Boost PP library sequence data type.</p>
 <p>You can use the result of this macro whenever you need to pass a Boost PP library sequence as data to a Boost PP library macro. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_TUPLE.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_TUPLE.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_DATA_TO_PP_TUPLE.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_DATA_TO_PP_TUPLE(...)</pre></div>
 <div class="refsect1">
-<a name="id936517"></a><h2>Description</h2>
+<a name="id957270"></a><h2>Description</h2>
 <p>... = variadic macro data.</p>
 <p>returns = a Boost PP library tuple data type.</p>
 <p>You can use the result of this macro whenever you need to pass a Boost PP library tuple as data to a Boost PP library macro. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_ARRAY_TO_DATA.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_ARRAY_TO_DATA.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_ARRAY_TO_DATA.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_ARRAY_TO_DATA(array)</pre></div>
 <div class="refsect1">
-<a name="id936961"></a><h2>Description</h2>
+<a name="id957714"></a><h2>Description</h2>
 <p>array = a Boost PP library array data type.</p>
 <p>returns = variadic macro data whose arguments are the same as the elements of an array that is inputted.</p>
 <p>The variadic macro data that is returned is in the form of of comma separated arguments. The variadic macro data can be passed to any macro which takes variadic macro data in the form of a final variadic macro data '...' macro parameter. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_LIST_TO_DATA.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_LIST_TO_DATA.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_LIST_TO_DATA.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_LIST_TO_DATA(list)</pre></div>
 <div class="refsect1">
-<a name="id937000"></a><h2>Description</h2>
+<a name="id957753"></a><h2>Description</h2>
 <p>list = a Boost PP library list data type.</p>
 <p>returns = variadic macro data whose arguments are the same as the elements of a list that is inputted.</p>
 <p>The variadic macro data that is returned is in the form of of comma separated arguments. The variadic macro data can be passed to any macro which takes variadic macro data in the form of a final variadic macro data '...' macro parameter. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_SEQ_TO_DATA.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_SEQ_TO_DATA.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_SEQ_TO_DATA.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_SEQ_TO_DATA(seq)</pre></div>
 <div class="refsect1">
-<a name="id937038"></a><h2>Description</h2>
+<a name="id957791"></a><h2>Description</h2>
 <p>seq = a Boost PP library sequence data type.</p>
 <p>returns = variadic macro data whose arguments are the same as the elements of a sequence that is inputted.</p>
 <p>The variadic macro data that is returned is in the form of of comma separated arguments. The variadic macro data can be passed to any macro which takes variadic macro data in the form of a final variadic macro data '...' macro parameter. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_ELEM.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_ELEM.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_ELEM.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_TUPLE_ELEM(n, tuple)</pre></div>
 <div class="refsect1">
-<a name="id936709"></a><h2>Description</h2>
+<a name="id957462"></a><h2>Description</h2>
 <p>n = number of the tuple element. The number starts from 0 to the size of the tuple - 1.</p>
 <p>tuple = a Boost PP library tuple data type.</p>
 <p>returns = the particular tuple element as specified by n.</p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_REM_CTOR.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_REM_CTOR.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_REM_CTOR.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_TUPLE_REM_CTOR(tuple)</pre></div>
 <div class="refsect1">
-<a name="id936754"></a><h2>Description</h2>
+<a name="id957507"></a><h2>Description</h2>
 <p>tuple = a Boost PP library tuple data type.</p>
 <p>returns = a series of comma-separated tokens equivalent to removing the parentheses from a tuple.</p>
 <p>This result is actually equivalent to the form of variadic macro data and can be used as an alternative to VMD_PP_TUPLE_TO_DATA to convert the tuple to variadic macro data.</p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_REVERSE.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_REVERSE.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_REVERSE.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_TUPLE_REVERSE(tuple)</pre></div>
 <div class="refsect1">
-<a name="id936798"></a><h2>Description</h2>
+<a name="id957551"></a><h2>Description</h2>
 <p>tuple = a Boost PP library tuple data type.</p>
 <p>returns = a tuple whose elements are in reversed order from the original tuple.</p>
 <p>In the Boost PP library there is no way to calculate the size of a tuple, so that the size must be known in order to be used by Boost PP library tuple macros. With variadic macros the size of a tuple can be calculated from the tuple itself.</p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_SIZE.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_SIZE.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_SIZE.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_TUPLE_SIZE(tuple)</pre></div>
 <div class="refsect1">
-<a name="id936671"></a><h2>Description</h2>
+<a name="id957424"></a><h2>Description</h2>
 <p>tuple = a Boost PP library tuple data type.</p>
 <p>returns = the number of elements in the tuple, commonly referred to as the tuple size.</p>
 <p>In the Boost PP library there is no way to calculate the size of a tuple, so that the size must be known in order to be used by Boost PP library tuple macros. With variadic macros the size of a tuple can be calculated from the tuple itself. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_DATA.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_DATA.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_DATA.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_TUPLE_TO_DATA(tuple)</pre></div>
 <div class="refsect1">
-<a name="id936923"></a><h2>Description</h2>
+<a name="id957676"></a><h2>Description</h2>
 <p>tuple = a Boost PP library tuple data type.</p>
 <p>returns = variadic macro data whose arguments are the same as the elements of a tuple that is inputted.</p>
 <p>The variadic macro data that is returned is in the form of of comma separated arguments. The variadic macro data can be passed to any macro which takes variadic macro data in the form of a final variadic macro data '...' macro parameter. </p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_LIST.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_LIST.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_LIST.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_TUPLE_TO_LIST(tuple)</pre></div>
 <div class="refsect1">
-<a name="id936840"></a><h2>Description</h2>
+<a name="id957593"></a><h2>Description</h2>
 <p>tuple = a Boost PP library tuple data type.</p>
 <p>returns = a list whose elements are the same as the tuple that is inputted.</p>
 <p>In the Boost PP library there is no way to calculate the size of a tuple, so that the size must be known in order to be used by Boost PP library tuple macros. With variadic macros the size of a tuple can be calculated from the tuple itself.</p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_SEQ.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_SEQ.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/VMD_PP_TUPLE_TO_SEQ.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -33,7 +33,7 @@
 
 </span>VMD_PP_TUPLE_TO_SEQ(tuple)</pre></div>
 <div class="refsect1">
-<a name="id936882"></a><h2>Description</h2>
+<a name="id957635"></a><h2>Description</h2>
 <p>tuple = a Boost PP library tuple data type.</p>
 <p>returns = a sequence whose elements are the same as the tuple that is inputted.</p>
 <p>In the Boost PP library there is no way to calculate the size of a tuple, so that the size must be known in order to be used by Boost PP library tuple macros. With variadic macros the size of a tuple can be calculated from the tuple itself.</p>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/index.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/index.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/index.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -105,7 +105,7 @@
 </div>
 </div>
 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: October 18, 2010 at 02:31:25 GMT</small></p></td>
+<td align="left"><p><small>Last revised: October 21, 2010 at 16:57:25 GMT</small></p></td>
 <td align="right"><div class="copyright-footer"></div></td>
 </tr></table>
 <hr>

Modified: sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/the_variadic_macro_data_library/vmd_comparison.html
==============================================================================
--- sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/the_variadic_macro_data_library/vmd_comparison.html (original)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/doc/html/the_variadic_macro_data_library/vmd_comparison.html 2010-10-21 12:59:45 EDT (Thu, 21 Oct 2010)
@@ -144,57 +144,64 @@
         macro functionality, a single macro or two macros with slightly different
         names.
       </p>
-<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
- Single macro design:
- </li></ul></div>
+<div class="orderedlist"><ol class="orderedlist" type="1">
+<li class="listitem">
+ Single macro design: <p>In our example, if we wish to support a single macro,
+ for compilers that both support or do not support variadic macros, the
+ code would be:</p>
 <p>
- In our example, if we wish to support a single macro, for compilers that
- both support or do not support variadic macros, the code would be:
- </p>
+</p>
 <pre class="programlisting"><span class="preprocessor">#if</span> <span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_NO_VARIADIC_MACROS</span><span class="special">)</span>
   <span class="preprocessor">#define</span> <span class="identifier">ENDUSER_MACRO</span><span class="special">(</span><span class="identifier">ppSequence</span><span class="special">)</span> <span class="identifier">ENDUSER_DETAIL_MACRO</span><span class="special">(</span><span class="identifier">ppSequence</span><span class="special">)</span>
 <span class="preprocessor">#else</span>
   <span class="preprocessor">#define</span> <span class="identifier">ENDUSER_MACRO</span><span class="special">(...)</span> <span class="identifier">ENDUSER_DETAIL_MACRO</span><span class="special">(</span><span class="identifier">VMD_DATA_TO_PP_SEQ</span><span class="special">(</span><span class="identifier">__VA_ARGS__</span><span class="special">))</span>
-<span class="preprocessor">#endif</span>
+<span class="preprocessor">#endif</span>
 </pre>
 <p>
- We would now have a single macro which would be used slightly differently
- by the end-user depending on whether the compiler being used supported variadic
- macros or not. This might not be best if the end-user's code needed to work
- for different compilers, some of which support variadic macros and some of
- which do not. In that latter case, a dual macro design ( see below ) might
- be better.
- </p>
+ </p>
+<p>We would now have a single macro which would be used slightly differently
+ by the end-user depending on whether the compiler being used supported
+ variadic macros or not. This might not be best if the end-user's code
+ needed to work for different compilers, some of which support variadic
+ macros and some of which do not. In that latter case, a dual macro design
+ ( see below ) might be better.</p>
+<p>Another solution supporting a single macro
+ is to just ignore variadic macros, and then our solution would be:</p>
 <p>
- Another solution supporting a single macro is to just ignore variadic macros,
- and then our solution would be:
- </p>
+</p>
 <pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">ENDUSER_MACRO</span><span class="special">(</span><span class="identifier">ppSequence</span><span class="special">)</span> <span class="identifier">ENDUSER_DETAIL_MACRO</span><span class="special">(</span><span class="identifier">ppSequence</span><span class="special">)</span>
 </pre>
 <p>
- We could also ignore any compilers which do not support variadic macros,
- and then our solution would be:
- </p>
+ </p>
+<p>We could also ignore any compilers which do not support variadic macros,
+ and then our solution would be:</p>
+<p>
+</p>
 <pre class="programlisting"><span class="preprocessor">#if</span> <span class="special">!</span><span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_NO_VARIADIC_MACROS</span><span class="special">)</span>
   <span class="preprocessor">#define</span> <span class="identifier">ENDUSER_MACRO</span><span class="special">(...)</span> <span class="identifier">ENDUSER_DETAIL_MACRO</span><span class="special">(</span><span class="identifier">VMD_DATA_TO_PP_SEQ</span><span class="special">(</span><span class="identifier">__VA_ARGS__</span><span class="special">))</span>
 <span class="preprocessor">#endif</span>
 </pre>
-<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
- Dual macro design:
- </li></ul></div>
 <p>
- Perhaps best is to provide two macros with slightly different names. Our
- solution would then be:
- </p>
+ </p>
+
+ </li>
+<li class="listitem">
+ Dual macro design: <p>Perhaps best is to provide two macros with slightly
+ different names. Our solution would then be:</p>
+<p>
+</p>
 <pre class="programlisting"> <span class="preprocessor">#define</span> <span class="identifier">ENDUSER_MACRO</span><span class="special">(</span><span class="identifier">ppSequence</span><span class="special">)</span> <span class="identifier">ENDUSER_DETAIL_MACRO</span><span class="special">(</span><span class="identifier">ppSequence</span><span class="special">)</span>
 <span class="preprocessor">#if</span> <span class="special">!</span><span class="identifier">defined</span><span class="special">(</span><span class="identifier">BOOST_NO_VARIADIC_MACROS</span><span class="special">)</span>
   <span class="preprocessor">#define</span> <span class="identifier">ENDUSER_MACRO_VM</span><span class="special">(...)</span> <span class="identifier">ENDUSER_DETAIL_MACRO</span><span class="special">(</span><span class="identifier">VMD_DATA_TO_PP_SEQ</span><span class="special">(</span><span class="identifier">__VA_ARGS__</span><span class="special">))</span>
 <span class="preprocessor">#endif</span>
 </pre>
 <p>
- Here I have attached an '_VM' to the name of the macro which supports variadic
- macros.
- </p>
+ </p>
+<p>Here I have attached an '_VM' to the name of the macro which supports
+ variadic macros.</p>
+
+ </li>
+</ol></div>
 <p>
         In an ideal world, once the new C++ standard is ratified, all compilers will
         support variadic macros, and then we can design a single macro which takes


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk