understands classparser using namespace xxx??

Achim Spangler spangler at tec.agrar.tu-muenchen.de
Wed Mar 15 16:13:07 UTC 2000


Hi,
I use "using namespace xxx" in the source file of a class, 
which is defined by "namespace xxx { class Foo{} }".

The classparser tells me during scan of foo.cpp
"No class by the name .Foo found 
 scope path is .Foo"

Should I write 
"Namespace::Class::Method" instead of 
"using namespace Namespace; //...; Class::Method"?


The files:
foo.h:
namespace xxx
{
  class Foo
  {
    Foo();
  }
}

foo.cpp:
using namespace xxx;
Foo:Foo()
{
//...
}

Achim
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=IKB-Duernast-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dipl.-Inform. Achim Spangler                TUM Freising-Weihenstephan
Tel.:  +49-8161-71 3565                     Institut fuer Landtechnik
Fax.:  +49-8161-71 3895                     Am Staudengarten 2
Email: spangler at tec.agrar.tu-muenchen.de    85350 Freising
URL:   http://ikb.weihenstephan.de/deu/members/persons/spangler.html
       http://ikb.weihenstephan.de/en/members/persons/spangler.html
=-=-=-=-=-=-=-=-=-=-=-Agricultural BUS System (LBS)-=-=-=-=-=-=-=-=-=-=-




More information about the KDevelop mailing list