[python][shared_ptr_from_python.hpp] looks like copy/paste or merge error

Ran Regev via Boost-users <[email protected]> Thu, 29 Jun 2023 17:31:12 +0300
Newsgroups gmane.comp.lib.boost.user
Message-ID <CANDnHvBjAY2Rw0EFKXy2pguvzeKW43nPjhdROXvCmmSEZn+Qgw@mail.gmail.com>
Hi,

The code in construct()  seems to surfer from copy/paste or merge error.
It seems as though the following lines are duplicated in the else clause:

      void *const storage =
((converter::rvalue_from_python_storage<SP<T> >*)data)->storage.bytes;
      // Deal with the "None" case.
      if (data->convertible == source)
        new (storage) SP<T>();

Please take a look at:
https://www.boost.org/doc/libs/1_82_0/boost/python/converter/shared_ptr_from_python.hpp



Ran.

_______________________________________________
Boost-users mailing list
[email protected]
https://lists.boost.org/mailman/listinfo.cgi/boost-users