note
kilinrax
<p>
I'm still confused as to why there should be an ambiguity about this section of the XS file:
<code>
void
MySettings::set(const string &key, const string &value)
</code>
When the error produced by the code shows that we have what looks like a matching method:
<code>
MyModule.c:64: no matching function for call to `Mysettings::set (const string *, const string *)'
/usr/local/include/mysettings.h:66: candidates are: void Mysettings::set(const string &, const string &)
</code>
Does XS not distinguish well between pointers and references?
</p>
<p>
MySet does have a typemap entry, of type O_OBJECT. I'll admit my understanding of typemaps is basic; this is just taken from the combining C++ and Perl link above.
</p>
197028
197056