Re: [boost] [Proto] Access to member in proto expression tree

Eric Niebler wrote:
dan marsden wrote:
If I now write:
if_(_1 == _2)[stuff...] // stuff... is unimportant
OK, I've added some ADL-blocking namespaces and the appropriate using directives, so hopefully your problem is fixed now. Please let me know.
Ok, I've given this a quick go with 2 compilers. Intel works fine with an unqualified if_ as above. Unfortunately gcc 4.1.2 fails, still picking up the proto boost::proto::control::if_. Thanks Dan ___________________________________________________________ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.htm...

dan marsden wrote:
Eric Niebler wrote:
dan marsden wrote:
If I now write:
if_(_1 == _2)[stuff...] // stuff... is unimportant
OK, I've added some ADL-blocking namespaces and the appropriate using directives, so hopefully your problem is fixed now. Please let me know.
Ok, I've given this a quick go with 2 compilers. Intel works fine with an unqualified if_ as above.
Unfortunately gcc 4.1.2 fails, still picking up the proto boost::proto::control::if_.
You'll have to send me your code. -- Eric Niebler Boost Consulting www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com

Eric Niebler wrote:
dan marsden wrote:
Eric Niebler wrote:
dan marsden wrote:
If I now write:
if_(_1 == _2)[stuff...] // stuff... is unimportant
OK, I've added some ADL-blocking namespaces and the appropriate using directives, so hopefully your problem is fixed now. Please let me know. Ok, I've given this a quick go with 2 compilers. Intel works fine with an unqualified if_ as above.
Unfortunately gcc 4.1.2 fails, still picking up the proto boost::proto::control::if_.
You'll have to send me your code.
<code received> Ah, I see the problem. Proto::extends was pulling in boost::proto as an associated namespace in a very round-about sort of way. Should work now. And I'll add a work item to move /all/ UDTs out of the boost::proto namespace. -- Eric Niebler Boost Consulting www.boost-consulting.com
participants (2)
-
dan marsden
-
Eric Niebler