Brian Silverman | f27e085 | 2018-08-04 23:56:45 -0700 | [diff] [blame^] | 1 | <html> |
| 2 | <head> |
| 3 | <meta content="text/html; charset=windows-1252" http-equiv="content-type"> |
| 4 | <title>BOOST_PP_LIMIT_REPEAT</title> |
| 5 | <link rel="stylesheet" type="text/css" href="../styles.css"> |
| 6 | </head> |
| 7 | <body> |
| 8 | <div style="margin-left: 0px;"> The <b>BOOST_PP_LIMIT_REPEAT</b> macro |
| 9 | defines the maximum number of repetitions supported by each <b>BOOST_PP_REPEAT</b> |
| 10 | dimension. </div> |
| 11 | <h4>Usage</h4> |
| 12 | <div class="code"> <b>BOOST_PP_LIMIT_REPEAT</b> </div> |
| 13 | <h4>Remarks</h4> |
| 14 | <div> This macro current expands to <i>256</i>.<br> |
| 15 | <br> |
| 16 | NOTE: for the current latest versions of Microsoft's VC++ compiler there |
| 17 | is a nested macro limit of 256. This means in actuality that the number of |
| 18 | repetitions using VC++ is actually less than 256 depending on the |
| 19 | repetition macro being used. For the BOOST_PP_REPEAT macro this limit |
| 20 | appears to be 252 while for the BOOST_PP_ENUM... series of macros this |
| 21 | limit appears to be around 230, before the VC++ compiler gives a "C1009: |
| 22 | compiler limit : macros nested too deeply" error. This is a compiler |
| 23 | limitation of VC++ which may vary depending on the specific repetition |
| 24 | macro being used, and therefore is not a problem the preprocessor library |
| 25 | can solve.</div> |
| 26 | <h4>Requirements</h4> |
| 27 | <div> <b>Header:</b> <a href="../headers/config/limits.html"><boost/preprocessor/config/limits.hpp></a> |
| 28 | </div> |
| 29 | <hr size="1"> |
| 30 | <div style="margin-left: 0px;"> <i>© Copyright <a href="http://www.housemarque.com" |
| 31 | target="_top">Housemarque Oy</a> 2002</i> <br> |
| 32 | <i>© Copyright Paul Mensonides 2002</i> </div> |
| 33 | <div style="margin-left: 0px;"> |
| 34 | <p><small>Distributed under the Boost Software License, Version 1.0. (See |
| 35 | accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> |
| 36 | or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p> |
| 37 | </div> |
| 38 | </body> |
| 39 | </html> |