|
Boost : |
From: Manfred Doudar (manfred.doudar_at_[hidden])
Date: 2006-09-15 04:51:02
On Fri, 15 Sep 2006 09:26:43 +0100
"Andy Little" <andy_at_[hidden]> wrote:
>
> "Manfred Doudar" <manfred.doudar_at_[hidden]> wrote in message
> news:20060915124632.096ed245_at_mathmcn.rsise.anu.edu.au...
> > On Fri, 15 Sep 2006 03:28:39 +0100
>
> > ..Back to C++, kinda, yeah .. though for the inner_product (and
> > this is where variadic template parameters would be a nice fit):
> >
> > fusion::inner_product<SequenceA, SequenceB, ...> { /*...*/ }
> >
> > (, or whatever the syntax was - forgot the exact semantics Doug
> > Gregor implemented)
>
> fusion::inner_product<
> SequenceA, SequenceB,
> FunctionSequenceA,FunctionSequenceB
> > { /*...*/ }
>
> ?
No (, at least I don't see how) ... you'd expect the valid functions to
be the operations sensible on sequences A&B both. With this in
mind (sequences not variadics), it would be more reasonable to propose
the following methinks:
fusion::inner_product<SequenceA, SequenceB, FunctionSequence>
{ /*,,,*/ }
Cheers,
-- Manfred Doudar - Research Engineer National ICT Australia - Canberra Research Lab | www.nicta.com.au Research School of Information Sciences and Engineering (RSISE) The Australian National University - Canberra, ACT 0200 AUSTRALIA
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk