[Clam-devel] Re: Problems of function template
Jun Jun
wangjun at dsp.ac.cn
Mon Aug 18 20:34:45 PDT 2008
> The problem is that definitions of template methods are to be defined inline
> (in the header within the class definition or outside the class definition
> defining it as 'inline'.
> Anyway, my advice is to keep the overload maybe moving shared code not
> involving the type to a helper function. Playing with templates is painfull.
Right. Return to overload, which seems necessary now.
The svn doesn't allow commiting, so I just send patches to the list:
* SchemaBrower.cxx: add hasScope() to make the overloaded addAttribute() suitable for AggregationEditor
* AggregationEditor.cxx: remove the attributeList->findItems, because 'source' won't repeat
Jun
----- Original Message -----
From: "David García Garzón" <dgarcia at iua.upf.edu>
To: "Jun Jun" <wangjun at dsp.ac.cn>
Cc: <clam-devel at llistes.projectes.lafarga.org>
Sent: Tuesday, August 19, 2008 12:04 AM
Subject: Re: Problems of function template
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OverLoadFunctionIsProper.patch
Type: application/octet-stream
Size: 5377 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080819/03e4f084/attachment-0005.obj>
More information about the clam-devel
mailing list