Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Corba > Name collision ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 489 of 534
Post > Topic >>

Name collision with 'nil'

by adam@[EMAIL PROTECTED] Apr 23, 2007 at 10:32 AM

ACE+TAO-1.5a
gcc3.4.4
linux

I'm trying to compile an app which pulls in some TAO code. However, I
get lots of name collisions on methods called 'nil' in TAO, e.g. the
following error is one of thousands just like it:

<blah blah>/ACE_wrappers/TAO/tao/Objref_VarOut_T.cpp:12: error:
expected unqualified-id before numeric constant

Here's the code it refers to:

10:    template <typename T>
11:    TAO_Objref_Var_T<T>::TAO_Objref_Var_T (void)
12:       : ptr_ (TAO::Objref_Traits<T>::nil ())
13:    {
14:    }

nil must be a #define'd constant somewhere or similar. Anybody know
where this collision is coming from and how this may be worked around?

Thanks,
Adam




 2 Posts in Topic:
Name collision with 'nil'
adam@[EMAIL PROTECTED]   2007-04-23 10:32:52 
Re: Name collision with 'nil'
adam@[EMAIL PROTECTED]   2007-04-25 08:11:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 23:17:23 CDT 2008.