mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
nodiscard fix.
This commit is contained in:
parent
223283295f
commit
4218213f29
@ -21,7 +21,7 @@ struct WithSftTrampoline : WithSft {
|
|||||||
void pass_shared_ptr(const std::shared_ptr<WithSft> &obj) {
|
void pass_shared_ptr(const std::shared_ptr<WithSft> &obj) {
|
||||||
to_cout("LOOOK pass_shared_ptr entry");
|
to_cout("LOOOK pass_shared_ptr entry");
|
||||||
to_cout("LOOOK obj->shared_from_this();");
|
to_cout("LOOOK obj->shared_from_this();");
|
||||||
obj->shared_from_this();
|
(void) obj->shared_from_this();
|
||||||
to_cout("LOOOK pass_shared_ptr return");
|
to_cout("LOOOK pass_shared_ptr return");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user