|
Boost : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-09-16 23:43:25
Arkadiy Vertleyb wrote:
> "Joel de Guzman" wrote
>
>> Arkadiy Vertleyb wrote:
>>> Hi All,
>>>
>>> Do you think it makes sense to write a utility that, using a syntax
>>> like following:
>>>
>>> template<class T, class U>
>>> class foo /*typeof*/
>>> {
>>> . . .
>>> };
> I played with this a bit (using Spirit), and the most challenging
> part seems to be parsing the default parameters, which can be
> complicated expressions, for example:
>
> template<class T, int n = traits<T*>::size + 1> class x{};
>
> I don't actually need to parse it, just to skip till the next comma
> or angle bracket (considering nesting).
Don't forget comments! ;-)
Jonathan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk