[Rcpp-devel] Defining template specialisation for wrap on Windows 64bit (Compilation error: 'result_type' does not name a type)

Steve Jaffe sjaffe at riskspan.com
Fri Oct 4 17:30:36 CEST 2013


Sorry it didn't fix the problem. (I'd still recommend making the change for the reasons I gave.)

I don't see your follow up email yet, so I'll take a guess and say that you may be missing a "typename", something like:

typedef typename OUT result_type ;

This was my first thought on seeing the error; I've seen many like it and that's usually the reason.

But I couldn't convince myself of why the C++ rules would require a typename in that spot.

But the rules are sufficiently arcane that, in general,  it's worth inserting a typename or two whenever the compiler says that something isn't what it "obviously" is (and templates are involved.)

(Support your local C++ compiler! It has a (provably) tough job to do. :-)

Good luck,
Steve

From: getoxxx at gmail.com [mailto:getoxxx at gmail.com] On Behalf Of Renaud Gaujoux
Sent: Friday, October 04, 2013 8:32 AM
To: Steve Jaffe
Cc: rcpp-devel at lists.r-forge.r-project.org
Subject: Re: [Rcpp-devel] Defining template specialisation for wrap on Windows 64bit (Compilation error: 'result_type' does not name a type)

Thanks for popping in Steve. I was full of hope when I read your reply!
Unfortunately I could not solve the issue with the changes you suggested.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20131004/4c509ae5/attachment-0001.html>


More information about the Rcpp-devel mailing list