Re: Re: Problem with Solver

"John Fletcher" <[email protected]> Mon, 23 Jan 2006 14:05:45 -0000
Newsgroups gmane.comp.lib.daixtrose.help
Message-ID <43D4E2B9.9631.EE8FA4@localhost>
Marcus

CC List

My reading of Vandevoorde/Josuttis is that if .template is not 
needed it is wrong to put it.  My experience is differenct.

gcc 3.3.3 (Fedora 2) .template was essential - the problem as I 
reported it.

gcc 4.0.2 (SuSE 10.0 using 64 bit) .template is now optional.  This 
is not consistent with Vandevoorde/Josuttis. It seems as though 
compilers are getting cleverer, perhaps with the option of use of 
.template retained so as not to break old code.

Best wishes

John


To:             	[email protected]
From:           	Markus Werle <[email protected]>
Subject:        	[Daixtrose-help] Re: Problem with Solver
Date sent:      	Mon, 23 Jan 2006 11:08:22 +0000 (UTC)

> John Fletcher <J.P.Fletcher <at> aston.ac.uk> writes:
> 
> > #ifdef PROBLEM
> >         MySolver.AddExpression<1>(e1);
> 
> [We already had private communication on this, but I thought 
> it would be OK to share the result with the community]
> 
> Some compilers need a little extra help and compile this code
> if modified to 
> 
> MySolver.template AddExpression<1>(e1);
> 
> So far so good. I do not remember the rules exactly, but I thought the
> "template" keyword even was required by now, so I gave it a try with
> my most up-to-date compilers:
> 
> Intel-9.0 and gcc-4.2-snapshot accept the code _without_ it!
> 
> Here I am smashing my head on the table again.
> I will take the time to reread Vandevoorde/Josuttis and probably post
> some question on c.l.c++.m to get sure about this issue. Will this
> story never end?
> 
> Stay tuned,
> 
> 
> Markus
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files for problems?  Stop!  Download the new AJAX search engine that
> makes searching your log files as easy as surfing the  web.  DOWNLOAD
> SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=1216
> 42 _______________________________________________ Daixtrose-help
> mailing list [email protected]
> https://lists.sourceforge.net/lists/listinfo/daixtrose-help
> 

-- 
Dr John P. Fletcher   Tel: (44) 121 204 3389 (direct line)
Chemical Engineering and Applied Chemistry (CEAC),
School of Engineering and Applied Science (SEAS),
Aston University, Aston Triangle, BIRMINGHAM B4 7ET  U.K.               
CEAC Web site http://www.ceac.aston.ac.uk/
FAX: (44) 121 204 3679




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642