|
Boost Users : |
Subject: Re: [Boost-users] [proto] learning proto slowly, a small (math)complex library
From: Eric Niebler (eric_at_[hidden])
Date: 2011-01-12 06:48:23
On 1/12/2011 3:58 AM, alfC wrote:
> Hi Eric,
>
> On Jan 11, 9:33 pm, Eric Niebler <e..._at_[hidden]> wrote:
>> See attached.
>
<snip>
> 3) defines the domain (I don't know what this does)
> what it lacks:
<snip>
> proto::terminal<i_tag>::type const i = {{}};
If you don't know what the domain is for, and you aren't wrapping i in
your expression adaptor, I have to wonder if you actually read the links
I sent you.
Your "simpler" example is actually a little trickier because the simple
expression "i" is not valid according to your desired grammar. So
grammar checking cannot be done early but must be delayed until the full
expression is known. I'm running out the door right now and can't say
more, but I encourage you to re-read the links I sent in my last email
and take another shot at solving this.
-- Eric Niebler BoostPro Computing http://www.boostpro.com
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