forked from boostorg/preprocessor
Assume variadic macro support.
This commit is contained in:
1 parent
8288ce7575
commit
5fd12d32d4
80 files changed
+864
-9334
No files matched your search
@@ -364,8 +364,8 @@ typedef TYPELIST((int, double, incomplete<void>)) xyz;
|
||||
<div>
|
||||
There are two minor caveats with this result. First, certain types like <code>void</code>
|
||||
can't be the type of an argument, so they have to be wrapped with <code>incomplete<T></code>.
|
||||
Second, the necessary double parenthesis is annoying. If and when C++
|
||||
gets C99's variadic macros, <code>TYPELIST</code> can be redefined:
|
||||
Second, the necessary double parenthesis is annoying. With variadic macros,
|
||||
<code>TYPELIST</code> can be redefined:
|
||||
</div>
|
||||
<div class="code">
|
||||
<pre>
|
||||
|
||||
Reference in new issue
Block a user