|
Boost Users : |
Subject: Re: [Boost-users] Defining Statements with Proto
From: David A. Greene (greened_at_[hidden])
Date: 2010-01-02 14:40:47
On Saturday 02 January 2010 11:23:19 David A. Greene wrote:
> On Saturday 02 January 2010 05:30:33 Eric Niebler wrote:
> > There is experimental and undocumented support in Proto for members like
> > else_. See libs/proto/example/virtual_member.cpp for a working example.
>
> Ah, this is what I was looking for. What is the "experimental" and
> "undocumented" part?
So following this example, I came up with the attached testcase, modified
from the one I posted to the development list.
I know the grammar is not strict enough (it should have a separation between
"expressions" and "statements") but that's not important.
With the modified testcase display_expr breaks with an incomprehensible
compiler error. I assume I'm missing an operator<< definition somewhere
but I don't know where it belongs.
And I'm still getting the same compiler error on the #if 0'd code.
Thanks for your help!
-Dave
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