Closed everywill closed 2 years ago
It would be very useful to know which change caused this regression. If you have time you could follow our bisect instructions to find out: https://emscripten.org/docs/contributing/developers_guide.html#bisecting
@sbc100 According to bisecting result, this commit caused the regression, related release
I'm unable to reproduce with the following example. If this is still an issue leave a comment and I'll reopon.
#include <emscripten/bind.h>
#include <emscripten.h>
using namespace emscripten;
class XEncoder
{
public:
XEncoder() = default;
int open() {
return 1;
}
};
XEncoder* makeXEncoder() {
return new XEncoder();
}
bool open(XEncoder& self) {
int openResult = self.open();
if (openResult) {
return true;
}
return false;
}
EMSCRIPTEN_BINDINGS(decoder_module) {
class_<XEncoder>("XEncoder")
.constructor(&makeXEncoder, allow_raw_pointers())
.function("open", &open);
}
It seems with a specific name link 'open', embind fails to compile width message - error: no matching member function for call to 'function'. The error did not occur before I update emsdk to latest version.
code is like:
and error message: