|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-06-19 22:18:58
----- Original Message -----
From: "David Abrahams" <david.abrahams_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, June 19, 2002 11:10 PM
Subject: Re: [boost] Re: File-Iteration
> From: "Aleksey Gurtovoy" <agurtovoy_at_[hidden]>
>
>
> > Paul Mensonides wrote:
> > > #define BOOST_PP_BOUND 1
> > > #include BOOST_PP_SET_LBOUND()
> > >
> > > #define BOOST_PP_BOUND 100
> > > #include BOOST_PP_SET_UBOUND()
> > >
> > > #define BOOST_PP_FILENAME_1 "file.hpp"
> > > #include BOOST_PP_ITERATE()
> >
> > A thought - can the interface be something like this:
> >
> > #define BOOST_PP_ITERATION_LIMITS (1, 100)
> > #define BOOST_PP_FILENAME_1 "file.hpp"
> > #include BOOST_PP_ITERATE()
> >
> > or, better yet,
> >
> > #define BOOST_PP_ITERATION_PARAMS (1, 100, "file.hpp")
> > #include BOOST_PP_ITERATE()
>
> or:
>
> #define BOOST_PP_FOR_FILE(1, 100, "file.hpp")
> #include BOOST_PP_FOR_BODY()
or,
#define BOOST_PP_REPEAT_FILE(1, 100, "file.hpp")
#include BOOST_PP_REPEAT_BODY()
and:
#define BOOST_PP_REPEAT_SELF(1, 100)
#include BOOST_PP_REPEAT_BODY()
with:
#define BOOST_PP_REPEAT_SELF(start,finish) \
BOOST_PP_REPEAT_FILE(start,finish,__FILE__)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk