Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-11-05 16:47:51


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

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk