Bug#31838: Class parser need explicit namespace

pfrancq at ulb.ac.be pfrancq at ulb.ac.be
Thu Aug 30 10:44:24 UTC 2001


Package: kdevelop
Version: 2.0 (using KDE 2.2.0 )
Severity: wishlist
Installed from:    Linux-Mandrake 8.0 (Traktopel) - Unsupported
Compiler:          gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)
OS:                Linux (i686) release 2.4.3-20mdksmp
OS/Compiler notes: 

When classes are declared in a namespace, the namespace must be given to make the methods' declaration accessible from the class parser.

Ex.:
// c.h
namespace n
{
  class c
  {
     c(void);
  }
}

// c.pp
#include <c.h>
using namespace n;
n::c::c(void)
{
}

The "n::" part of the declaration has to be specify to make the class parser find the declaration, but because a "using namespace instruction has been added", it is not necessary (and it makes the code less readable).

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)


-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list