Boost logo

Boost Users :

Subject: Re: [Boost-users] [Fusion] The real, real basics!
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2010-09-07 10:32:23


On Tue, Sep 7, 2010 at 3:00 PM, Joel Falcou <joel.falcou_at_[hidden]> wrote:

> On 07/09/10 15:44, Robert Jones wrote:
>
>> Ok, I know this is going to be laughably simple, but I think I'm making
>> a right hash of it...
>>
>> For the cerebrally challenged, how do you write the specification of a
>> function
>> which takes any fusion vector, but only a fusion vector, as a parameter?
>>
>>
> Use enable_if with fusion::traits::category_of is your best try I guess
>

Ah, right, thank you - that's actually very helpful. I had thought this was
going
to be blindingly obvious, but if that's how it's done in general I can see
how to
put it all together now!

- Rob.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net