|
Proto : |
Subject: Re: [proto] Extendin proto::switch_
From: Eric Niebler (eric_at_[hidden])
Date: 2011-08-06 02:10:12
On 8/5/2011 10:55 PM, Joel falcou wrote:
> On 06/08/11 07:30, Eric Niebler wrote:
>> That wouldn't be enough because proto::matches "knows" about
>> proto::switch_. It would be easy enough to extend proto::switch_ to take
>> an optional mpl metafunction that accepts and expression and returns a
>> type to dispatch on. It would default to proto::tag_of<mpl::_>. Or for
>> the sake of consistency with the rest of proto, it should probably be a
>> transform, in which case it would default to proto::tag_of<proto::_>().
>
> OK
>
>> Could you open a feature request?
>
> Well, we wanted to know the correct road, i have someone to do it, so
> let's say we'll provide you with a patch request instead ;)
Even better. :-)
-- Eric Niebler BoostPro Computing http://www.boostpro.com
Proto list run by eric at boostpro.com