ruby-rice / rice

Ruby Interface for C++ Extensions
http://ruby-rice.github.io/
Other
370 stars 62 forks source link

Incorrect handling of std::smart_ptr #203

Closed cfis closed 7 months ago

cfis commented 7 months ago

As mentioned in https://github.com/jasonroelofs/rice/issues/192#issuecomment-1878105656, std::smart_ptr handling is incorrect. When Rice wraps a std::smart_ptr it calls std::move on a reference, thus invalidating the passed in pointer.