Skip to content

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

@e-kwsm

Description

@e-kwsm

<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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions