Commit 2f7fc795 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Update template class generation

parent ce355d6f
Pipeline #116882 passed with stages
in 12 minutes and 45 seconds
......@@ -307,8 +307,8 @@ void PClassGenerator::saveCopyEqualOperatorImpl(std::ofstream & fs){
fs << " * \t@return copied class" << endl;
fs << "*/" << endl;
saveTemplateDefinition(fs);
if(p_useTemplate) fs << "typename " << p_classNameSpace << "::";
fs << p_className << " & " << p_classNameSpace << "::operator = (const " << p_classTypeName << " & other){" << endl;
// if(p_useTemplate) fs << "typename " << p_classNameSpace << "::";
fs << p_classTypeName << " & " << p_classNameSpace << "::operator = (const " << p_classTypeName << " & other){" << endl;
fs << "\tcopy" << firstToUpper(p_className) << "(other);" << endl;
fs << "\treturn *this;" << endl;
fs << "}" << endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment