Re: [proto] pod_generator Question

2011-02-13 Thread Nate Knight
> The second argument to BOOST_PROTO_DEFINE_OPERATORS is a domain. When > defining a domain you (usually) specify a generator with an expression > wrapper. What are you using for a domain, and how do you define it? > > When I want an end-user-friendly terminal type, I derive it from the > express

Re: [proto] pod_generator Question

2011-02-12 Thread Eric Niebler
On 2/13/2011 2:55 AM, Nate Knight wrote: > > I have some external non-proto terminals I've adapted using > BOOST_PROTO_DEFINE_OPERATORS. I was trying to figure out how to get > the terminals picked up by the operator overloads without importing > them all from the namespace they are defined in ev

Re: [proto] pod_generator Question

2011-02-12 Thread Nate Knight
> On 2/12/2011 7:17 AM, Nate Knight wrote: >> I see in the Proto documentation a trick for getting the Proto operator >> overloads found by ADL using something like >> >> template >> struct my_complex >> { >>BOOST_PROTO_EXTENDS( >>typename proto::terminal >::type >> , my_complex

Re: [proto] pod_generator Question

2011-02-12 Thread Eric Niebler
On 2/12/2011 7:17 AM, Nate Knight wrote: > I see in the Proto documentation a trick for getting the Proto operator > overloads found by ADL using something like > > template > struct my_complex > { > BOOST_PROTO_EXTENDS( > typename proto::terminal >::type > , my_complex >

[proto] pod_generator Question

2011-02-11 Thread Nate Knight
I see in the Proto documentation a trick for getting the Proto operator overloads found by ADL using something like template struct my_complex { BOOST_PROTO_EXTENDS( typename proto::terminal >::type , my_complex , proto::default_domain ) }; The proto::pod_generator cl