[pre-processor ] help needed

Hello *,
I have some pre-processor sequence in form of:
(X1) (X2) (X3) (X4)
which is expanded by BOOST_PP_SEQ_FOR_EACH to template parameters:
some_template

AMDG Ovanes Markarian wrote:
There are a couple of ways to do it. You can make each element of the
Seq to be itself a seq
and then call BOOST_PP_SEQ_ENUM on the inside:
((X1)) ((X2)) ((some_other_template

Steven,
thanks a lot for your answers. That could help, but I would like to have
some simple interface for the user. I don't want users write a lot of
template classes where they would not really understand the background.
In the current approach X4 is the trait type:
Asking the users to write:
(X1)(X2)(X3)((traitX

Steven, one additional question. In the second solution paranthesized_type is a function type, which is passed to the temple? If so, then I need to declare somewhere an overload. Isn't it so? Thanks, Ovanes There are a couple of ways to do it. You can make each element of the

Oh, I got it... Sorry again for bothering.
paranthesized_type is a type and the construct
paranthesized_type (SomeParam)
is the function type which expects a function, which returns
paranthesized_type and receives SomeParam as input parameter. Steven this is
a great idea! Many thanks!
This solution will defenetely help me solving my problem!
Ovanes
On Jan 29, 2008 10:24 AM, Ovanes Markarian
participants (2)
-
Ovanes Markarian
-
Steven Watanabe