Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: trigraph is removed in C++17 #58

Open
e-kwsm opened this issue Jan 22, 2025 · 0 comments · May be fixed by #59
Open

doc: trigraph is removed in C++17 #58

e-kwsm opened this issue Jan 22, 2025 · 0 comments · May be fixed by #59

Comments

@e-kwsm
Copy link

e-kwsm commented Jan 22, 2025

<div>
All that we need now to perform a simple file iteration is to invoke the
mechanism:
</div>
<div class="code">
<pre>
??=include BOOST_PP_ITERATE()
</pre>
</div>
<div>
(The <code>??=</code> token is a trigraph for <code>#</code>.&nbsp; I use the
trigraph to make it clear that I am <i>including</i> a file rather than
defining or expanding a macro, but it is not necessary.&nbsp; Even the digraph
version, <code>%:</code>, could be used.&nbsp; Some compilers do not readily
accept trigraphs and digraphs, so keep that in mind.&nbsp; Other than that, use
whichever one you prefer.)
</div>

<div>
Once these two macros are defined, the local iteration is initiated by <i>including</i> <b>BOOST_PP_LOCAL_ITERATE</b>().
</div>
<div class="code"><pre>
??=include BOOST_PP_LOCAL_ITERATE()
</pre></div>
<div>
(The <code>??=</code> token is a trigraph for <code>#</code>.&nbsp;
I use the trigraph to make it clear that I am <i>including</i> a file rather than defining or expanding a macro, but it is not necessary.&nbsp;
Even the digraph version, <code>%:</code>, could be used.&nbsp;
Some compilers do not readily accept trigraphs and digraphs, so keep that in mind.&nbsp;
Other than that, use whichever one you prefer.)
</div>

e-kwsm added a commit to e-kwsm/preprocessor that referenced this issue Jan 22, 2025
@e-kwsm e-kwsm linked a pull request Jan 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant