2020-09-14 18:26:49 -04:00
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2002-10-03 22:13:37 +00:00
|
|
|
|
<html>
|
2015-05-29 22:53:01 -04:00
|
|
|
|
<head>
|
2020-08-23 20:12:06 -04:00
|
|
|
|
<meta content="text/html; charset=windows-1252"
|
|
|
|
|
http-equiv="content-type">
|
2015-05-29 22:53:01 -04:00
|
|
|
|
<title>BOOST_PP_LIMIT_REPEAT</title>
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../styles.css">
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2020-08-23 20:12:06 -04:00
|
|
|
|
<div style="margin-left: 0px;"> The <b>BOOST_PP_LIMIT_REPEAT</b>
|
|
|
|
|
macro defines the maximum number of repetitions supported by each
|
|
|
|
|
<b>BOOST_PP_REPEAT</b> dimension. </div>
|
2015-05-29 22:53:01 -04:00
|
|
|
|
<h4>Usage</h4>
|
|
|
|
|
<div class="code"> <b>BOOST_PP_LIMIT_REPEAT</b> </div>
|
|
|
|
|
<h4>Remarks</h4>
|
2020-09-14 18:26:49 -04:00
|
|
|
|
<div>This macro expands by default to <i>256</i>. For a C++
|
|
|
|
|
standard conforming preprocessor, the end-user can change this to
|
|
|
|
|
512 or 1024 by defining this macro to either value before
|
|
|
|
|
including any library headers, as long as the end-user also
|
2020-08-23 20:12:06 -04:00
|
|
|
|
defines the <a
|
|
|
|
|
href="file:///E:/Programming/VersionControl/modular-boost/libs/preprocessor/doc/ref/limit_mag.html">BOOST_PP_LIMIT_MAG</a>
|
|
|
|
|
macro to be equal to or greater than this value. <br>
|
2015-05-29 22:53:01 -04:00
|
|
|
|
<br>
|
2020-08-23 20:12:06 -04:00
|
|
|
|
NOTE: for the current latest versions of default preprocessor for
|
|
|
|
|
Microsoft's VC++ compiler there is a nested macro limit of 256.
|
|
|
|
|
This means in actuality that the number of repetitions using VC++
|
|
|
|
|
is actually less than 256 depending on the repetition macro being
|
|
|
|
|
used. For the BOOST_PP_REPEAT macro this limit appears to be 252
|
|
|
|
|
while for the BOOST_PP_ENUM... series of macros this limit appears
|
|
|
|
|
to be around 230, before the VC++ compiler gives a "C1009:
|
|
|
|
|
compiler limit : macros nested too deeply" error. This is a
|
|
|
|
|
compiler limitation of VC++ which may vary depending on the
|
|
|
|
|
specific repetition macro being used, and therefore is not a
|
|
|
|
|
problem the preprocessor library can solve. This limitation of the
|
|
|
|
|
default preprocessor for VC++ does not exist for the new standard
|
|
|
|
|
conforming preprocessor for VC++ in Visual Studio 2019 invoked
|
|
|
|
|
with the<code> /Zc:preprocessor</code> switch.<br>
|
|
|
|
|
</div>
|
2015-05-29 22:53:01 -04:00
|
|
|
|
<h4>Requirements</h4>
|
|
|
|
|
<div> <b>Header:</b> <a href="../headers/config/limits.html"><boost/preprocessor/config/limits.hpp></a>
|
|
|
|
|
</div>
|
2020-09-14 18:26:49 -04:00
|
|
|
|
<b>See also<br>
|
|
|
|
|
</b>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="../topics/limitations.html">Limitations</a></li>
|
|
|
|
|
<li><a href="../ref/is_standard.html">BOOST_PP_IS_STANDARD</a><br>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<br>
|
2015-05-29 22:53:01 -04:00
|
|
|
|
<hr size="1">
|
2020-08-23 20:12:06 -04:00
|
|
|
|
<div style="margin-left: 0px;"> <i><EFBFBD> Copyright <a
|
|
|
|
|
href="http://www.housemarque.com" target="_top">Housemarque Oy</a>
|
|
|
|
|
2002</i> <br>
|
2015-05-29 22:53:01 -04:00
|
|
|
|
<i><EFBFBD> Copyright Paul Mensonides 2002</i> </div>
|
|
|
|
|
<div style="margin-left: 0px;">
|
2020-08-23 20:12:06 -04:00
|
|
|
|
<p><small>Distributed under the Boost Software License, Version
|
|
|
|
|
1.0. (See accompanying file <a
|
|
|
|
|
href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
|
|
|
|
|
copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
|
2015-05-29 22:53:01 -04:00
|
|
|
|
</div>
|
|
|
|
|
</body>
|
2002-10-03 22:13:37 +00:00
|
|
|
|
</html>
|