Menu

#2 Trouble with C++ namespaces

open
nobody
None
5
2001-05-14
2001-05-14
Dan Katz
No

I have been trying to use oo-browser with a C++
project and have run into problems with namespaces.
In particular, whenever I derive off of a class which
is explicitly named, the child class is listed as a
child of the namespace rather than of the parent
class. For example, if I define the following structure:

namespace foo
{
class bar
{
}
}

class baz : public foo::bar
{
}

and then examine it with oo-browser, I get 3 classes
(foo, bar, baz), where the oo-browser lists 'baz' as a
child of 'foo', and lists bar as having neither
parents nor children.

Since my projects tend to use namespaces extensively,
this is a serious impediment to my use of oo-browser.

I am using version 4.07 with GNU Emacs 20.7 under linux.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.