Fix casters of STL containers with char*
by YannickJadoul · Pull Request #2303 · pybind/pybind11 (original) (raw)
This cóuld fix #2245, I believe. Would you mind testing, if it does, @codypiersall?
If it does, the question is if this is a price we're willing to pay for it?
On the one hand, the casters for tuple
, pair
, etc, also hold on to their subcasters. On the other hand, it might be a heavy price to "just" solve the issue with char *
? Maybe there is a better way to keep the things char*
point to alive?
Closes #2245 (if we'd decide to merge it).