From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2003-01-25 12:53:50


Paul Mensonides wrote:
> ----- Original Message -----
> From: "Aleksey Gurtovoy" <agurtovoy_at_[hidden]>
> > You have a point, here. I'll look into the issue tonight.
>
> Don't bother. What Hugo is doing is a "sketchy" use of the mechanism
> precisely because of this type of problem. Even if you efine a
> special flag macro to distinguish a certain MPL iteration from some
> other iteration, you are still going to have serious problems.
> Specifically, you'd have to rewrite all of it to reenter the
> file-iteration mechanism in an abstract and relative way, which means
> no direct references to specific iteration frames at all. This kind
> of thing is the purpose of the "relative" macros, but I cannot
> _evaluate_ the filename to iterate over. Therefore, I cannot
> abstract the depth.

OK, I see, there is no easy way to fix it.

Hugo,

would the BOOST_PP_ANGLED_INCLUDE() mechanism Paul referred to in another
message in this thread help you to implement what you are currently trying
to do with BOOST_PP_ITERATE()? If it would, let's pursue that solution,
then, since your case _is_ somewhat special and apparently is in conflict
with "recommended" usage of file iteration mechanism.

Aleksey