Re: proto: analytical-only math functions
Eric Niebler <eric <at> boost-consulting.com>
2009-03-01 02:33:16 GMT
Hicham Mouline wrote:
>
> Hello,
> I pasted the code I have so far in
> http://codepad.org/gk9KoR31
> a really cool tool indeed.
>
<snip>
>
> My questions (please refer to the code):
>
<snip>
Hi Hicham,
First let me apologize for not answering your questions the first time
you posted them. I thought, "That's a lot of questions. I'll get to it
when I have time." And I just haven't. Some of your questions are easy,
though, so I'll give you some tips and get to the rest as time allows.
proto::_ can only match types, not non-type template parameters, so you
need to change constant_tag to take an MPL Integral Constant.
The first parameter to proto::extends must be an expression type, so on
line 47, you should probably have "typename
proto::terminal<constant_tag<subscript> >::type", or something.
(Continue reading)