This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: specialized constructor in specialized class


Hi Scott!

Thanks for your reply!

Sorry, this did not solve it. The error message then
occurs 2 times. For each occurence of template<>

Frank


On Tue, 29 Jun 2010, me22 wrote:


On 29 June 2010 08:28, Frank Winter <frank.winter@desy.de> wrote:

How can the specialized constructor be defined?



I think you do the following at namespace scope:


 template<>
Âtemplate<>
ÂRcomplex<double>::RComplex(int arg)
Â{
Â}

(And no, the 2 template lines isn't a typo)

HTH,
~ Scott


--


Institut fuer theoretische Physik
Universitaet Regensburg
Universitaetsstr. 31
93053 Regensburg
Germany

office +49 (0)941 943 2085
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]