Boost logo

Boost :

Subject: Re: [boost] Requesting a review of Metaparse
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-01-31 07:09:53


On 01/30/2012 10:37 PM, Roman Perepelitsa wrote:
> 2012/1/30 Mathias Gaunard<mathias.gaunard_at_[hidden]>
>
>> On 01/30/2012 08:22 AM, Abel Sinkovics wrote:
>>
>>> I can't see how one could do the following using
>>> constexpr:
>>>
>>> [...]
>>>
>>> - create types as the result of parsing
>>>
>>
>> You'd have to return objects, but then you can call decltype on them and
>> get types.
>
>
> The type of the object you return can't depend on the content of the string.

The arguments themselves aren't constexpr indeed.
(constexpr arguments would be something nice to add to the standard)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk