I have a piece of C++ code which is to be migrated to ANSI C++.Im doing the standard namespaces..std:: changes etc but there is one portion which is NOT compiling(It compiled fine in Legacy C++..) Pls help.
File #1 Field.cpp
------------------------
------------------------------
( (Header.getFieldMDStatic() ).getFieldSummary() ) . setFieldName("HEADER"
File # 2 FieldSummary.h
-----------------------
------------------------
char *fieldName;
long fieldType;
void setFieldName (char *name)
{
fieldName = name;
}
WARNING /ERROR: String Literal converted to char* in formal argument name in call to FieldSummary::setFieldName (char*)
File #1 Field.cpp
------------------------
------------------------------
( (Header.getFieldMDStatic() ).getFieldSummary() ) . setFieldName("HEADER"
File # 2 FieldSummary.h
-----------------------
------------------------
char *fieldName;
long fieldType;
void setFieldName (char *name)
{
fieldName = name;
}
WARNING /ERROR: String Literal converted to char* in formal argument name in call to FieldSummary::setFieldName (char*)