Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-01-26 12:19:24


Tobias Schwinger <tschwinger_at_[hidden]> writes:

> Arkadiy Vertleyb wrote:
>> "Tobias Schwinger" <tschwinger_at_[hidden]>
>>>
>>>Would it be possible to allow Typeof registration of partially specialized
>>>templates?
>>
>>
>> It seems that it would be very hard to achieve any decent syntax :-(
>>
>
> Without thinking about the macro interface for a moment it would be technically
> possible, wouldn't it?
>
>> Breaking at every comma and placing every part into the sequence element
>> just to pass in an unstructured string?
>
> Right, I just escaped every comma with ")(" and put parentheses about the whole
> thing. Another (maybe more readable) approach could be to use a PP-array instead
> of a sequence, or a comma count parameter.

I don't know if it helps, but it's sometimes possible to work around
the comma issue by using a syntax with extra parens on the outside.
Then you can form a function (pointer) type and take it from there.

     int (foo<bar, baz>)

HTH,

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