
Tobias Schwinger <tschwinger@neoscientists.org> writes:
Arkadiy Vertleyb wrote:
"Tobias Schwinger" <tschwinger@neoscientists.org>
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