Maarten Baert 4624e8e164
Don't return pointers to static objects with return_value_policy::take_ownership. (#3946)
* Don't return pointers to static objects with return_value_policy::take_ownership.

This fixes -Wfree-nonheap-object warnings produced by GCC.

* Use return value policy fix instead

Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
2022-05-24 13:46:31 -04:00
..
2022-02-14 11:36:22 -08:00
2022-02-11 19:06:16 -05:00
2022-02-11 19:06:16 -05:00
2022-02-14 11:36:22 -08:00
2022-02-14 11:36:22 -08:00
2022-02-14 11:36:22 -08:00
2022-02-11 19:06:16 -05:00
2022-02-14 11:36:22 -08:00
2022-02-14 11:36:22 -08:00