www.digitalmars.com         C & C++   DMDScript  

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

reply "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
parent "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