mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
Commenting out const in def_buffer(... const). With this, test_buffers builds and runs with PYBIND11_USE_SMART_HOLDER_AS_DEFAULT. Explanation why the const needs to be removed, or fix elsewhere, is still needed, but left for later.
This commit is contained in:
parent
63abf87244
commit
6349531306
@ -1409,7 +1409,8 @@ public:
|
||||
|
||||
template <typename Return, typename Class, typename... Args>
|
||||
class_ &def_buffer(Return (Class::*func)(Args...) const) {
|
||||
return def_buffer([func] (const type &obj) { return (obj.*func)(); });
|
||||
// NEEDED: Explanation why the const needs to be removed, or fix elsewhere.
|
||||
return def_buffer([func] (/*const*/ type &obj) { return (obj.*func)(); });
|
||||
}
|
||||
|
||||
template <typename C, typename D, typename... Extra>
|
||||
|
Loading…
Reference in New Issue
Block a user