www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - benign (const) redefinition of parameters in function implementation

↑ ↓ ← "Matthew Wilson" <matthew stlsoft.org> writes:
Has this been fixed? (I may be using an older version of the compiler in the
IDDE)

// in A.h

struct A
{
  void fn(char *x);
};

// in A.cpp

void A::fn(char *const x) // Am getting the redefinition warning here
{
}
Aug 17 2003
↑ ↓ → "Walter" <walter digitalmars.com> writes:
No. Sorry.

"Matthew Wilson" <matthew stlsoft.org> wrote in message
news:bhpr4l$2bng$1 digitaldaemon.com...
 Has this been fixed? (I may be using an older version of the compiler in

 IDDE)

 // in A.h

 struct A
 {
   void fn(char *x);
 };

 // in A.cpp

 void A::fn(char *const x) // Am getting the redefinition warning here
 {
 }

Aug 20 2003