Opened 10 years ago
Closed 7 years ago
#8413 closed Patches (fixed)
BOOST_PP_SEQ_SIZE
| Reported by: | anonymous | Owned by: | No-Maintainer |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | preprocessor |
| Version: | Boost 1.52.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
I needed to use a sequence ( var1a , var1b )( var2a , var2b )
BOOST_PP_SEQ_SIZE would give incorrect number of parameters
I changed all the BOOST_PP_SEQ_SIZE_xxx definitations from BOOST_PP_SEQ_SIZE_0( _ ) to
#define BOOST_PP_SEQ_SIZE_0( ... ) BOOST_PP_SEQ_SIZE_1
solved the problem and makes the sequences more usefull.
Change History (3)
comment:1 by , 10 years ago
| Component: | None → preprocessor |
|---|---|
| Owner: | set to |
comment:2 by , 7 years ago
comment:3 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

The notation:
is not a Boost PP sequence. Each element of a Boost PP sequence must be a single-element tuple.
Therefore applying BOOST_PP_SEQ_SIZE to such syntax is undefined behavior.