Allow base::Bind to bind __stdcall object methods for Windows x86.
The binding code is missing template definitions for __stdcall object method invocations. Such template definitions exists for functions but not for object methods. This patch allows this code to compile: class MethodHolder { public: int __stdcall Func(int n) { return n; } int __stdcall ConstFunc(int n) const { return -n; } }; MethodHolder obj; auto stdcall_method_cb = BindRepeating(&MethodHolder::Func, base::Unretained(&obj), 1); Bug: 1066580 Change-Id: I6ce3cbeb9b42ebcf75c64e33f464c4e4c5409a26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2129895 Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#755432}
Showing
Please register or sign in to comment