December 23, 2002 Re: Another namespace bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert M. Münch | "Robert M. Münch" <robert.muench@robertmuench.de> wrote in message news:au6tij$2v32$1@digitaldaemon.com... > "Walter" <walter@digitalmars.com> schrieb im Newsbeitrag news:au4toe$1hl3$1@digitaldaemon.com... > > Ok. I'll keep it on the active bug list for now > Walter, how do you keep track of bugs and do you use a tool for this? Robert Oh, I just move them around between folders in Outlook. |
January 01, 2003 Re: Another namespace bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christof Meerwald | void f();
namespace ns
{
using ::f;
}
using ns::f;
int main()
{
f();
// Error: ambiguous reference to symbol
return 0;
}
It's the same function (see 7.3.3 The using declaration [namespace.udecl], paragraph 10 and 3.3 Declarative regions and scopes [basic.scope], paragraph 4).
Workaround is simple, so it's low priority.
bye, Christof
--
http://cmeerw.org JID: cmeerw@jabber.at mailto cmeerw at web.de
...and what have you contributed to the Net?
|
January 01, 2003 Re: Another namespace bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christof Meerwald | Quite similar to the previous one:
void f();
namespace ns
{
using ::f;
using ::f;
}
int main()
{
ns::f();
return 0;
}
bye, Christof
--
http://cmeerw.org JID: cmeerw@jabber.at mailto cmeerw at web.de
...and what have you contributed to the Net?
|
Copyright © 1999-2021 by the D Language Foundation