I'm trying to incorporate c++ stl constructs into the %union { } block
of yacc. Specifically, I'm trying to do something similar to this:
%union {
...
std::list* int_list;
...
}
This yields the error:
eidd.y:100: error: using-declaration for non-member at class scope
eidd.y:100: error: exp
On 2 Oct 2007, at 19:55, Joel E. Denny wrote:
I do not think the leading "::"-issue is very important - but it
would be
nice
showing one has given thought to it. :-)
So, I'm seeing no reason to disallow it. If the user wants absolute
references, he should probably get absolute references.
On Tue, 2 Oct 2007, Hans Aberg wrote:
> > > I do not think the leading "::"-issue is very important - but it would be
> > > nice
> > > showing one has given thought to it. :-)
> >
> > So, I'm seeing no reason to disallow it. If the user wants absolute
> > references, he should probably get absol
On 2 Oct 2007, at 07:03, Joel E. Denny wrote:
It also occurs to me now that a leading "::" is not completely
redundant.
The given namespace is used in two ways: for declarations and for
references. The former needs the splitting we discussed. I
think the
latter would use the given namespac
Sebastian Pipping wrote:
Joel E. Denny wrote:
I figured the namespace name is meant to be relative to the global
namespace, so a leading "::" is implicit if not specified.
I'm not sure if this is true. Could it be that without "::"
it's relative to the namespace the call was made from instead
o