[Fusion] The real, real basics!

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? Thx - Rob.

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

On Tue, Sep 7, 2010 at 3:00 PM, Joel Falcou
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.
participants (2)
-
Joel Falcou
-
Robert Jones