Skip Menu |

This queue is for tickets about the ExtUtils-XSpp CPAN distribution.

Report information
The Basics
Id: 85328
Status: rejected
Priority: 0/
Queue: ExtUtils-XSpp

People
Owner: Nobody in particular
Requestors: smueller [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: const references?
Maybe I'm just being daft right now, but const references don't work as parameters. The following C++ signature can't be just c&p'd into XS++: int foo(const std::string &bar); That's unfortunate and we could just emit the equivalent code for "std::string *bar" or similar.
Subject: Re: [rt.cpan.org #85328] const references?
Date: Wed, 15 May 2013 23:10:27 +0200
To: bug-ExtUtils-XSpp [...] rt.cpan.org
From: Mattia Barbon <mattia.barbon [...] libero.it>
On Wed, May 15, 2013 at 8:49 PM, Steffen Mueller via RT < bug-ExtUtils-XSpp@rt.cpan.org> wrote: Show quoted text
> Maybe I'm just being daft right now, but const references don't work as > parameters. The following C++ signature can't be just c&p'd into XS++: > > int foo(const std::string &bar); >
I'm confused: wxPerl uses this (but not with std::string), and there is an explicit test for const std::string & in the test suite (t/075_types.t) and it seems to emit the correct code. What error are you seeing?
RT-Send-CC: mattia.barbon [...] libero.it
This one was filed from memory. As it turns out, faulty memory. So rejecting my own bug. Sorry for the confusion. Now I have to wonder what it was about const references that had an issue. :(