
5 Nov
2006
5 Nov
'06
10:25 p.m.
David Abrahams <dave@boost-consulting.com> writes:
#include <boost/preprocessor/seq/subseq.hpp> BOOST_PP_SEQ_SUBSEQ( (p0)(p1)(p2)(p3)(p4), 0, 1) BOOST_PP_SEQ_SUBSEQ( (p0)(p1)(p2)(p3)(p4), 1, 2) BOOST_PP_SEQ_SUBSEQ( (p0)(p1)(p2)(p3)(p4), 2, 3) BOOST_PP_SEQ_SUBSEQ( (p0)(p1)(p2)(p3)(p4), 3, 4)
yields
(p0) (p1) (p2) (p2) (p3) (p4) fu.cpp:5:1: error: macro "BOOST_PP_TUPLE_ELEM_2_0" requires 2 arguments, but only 1 given BOOST_PP_TUPLE_ELEM_2_0
on g++-4.0.3
I don't think that's what's intended, is it?
...and then it hit me: the 3rd parameter is the desired length of the subsequence! duh, sorry. -- Dave Abrahams Boost Consulting www.boost-consulting.com