Oberon00 / luabind

Luabind is a library that helps you create bindings between C++ and Lua.
http://oberon00.github.io/luabind/
Other
46 stars 13 forks source link

Used unique_ptr instead of auto_ptr when c++11 is used -- help change the syntax #47

Open jameslee5656 opened 3 years ago

jameslee5656 commented 3 years ago

Hi @Oberon00,

We recently has been working on deprecating auto_ptr usage for our projects. I noticed that Bertram25 has been a while since updating the request. After reviewing some of your thoughts and his changes, we finished building the project and hope to contribute our work to this repo.

jameslee5656 commented 3 years ago

This pull request including the following,

kaetemi commented 3 years ago

This looks much nicer. :)

Bertram25 commented 2 years ago

Hey guys, I'm slowly coming back at this. I like the strategy used in this PR and by reading all comments that have been addressed based on mine, I'm pretty sure the only thing left to do is to test it out a bit. :) I'll do that asap.

Bertram25 commented 2 years ago

Ah also, something we might consider is that in this #32 doc/classes.rst was also updated to reflect the new unique ptr usage.

Bertram25 commented 2 years ago

So far, I've tested it and the base works great out of the box. I'll keep on testing it for the next few days but so far so good. Thanks for the job done!

kchang718 commented 2 years ago

Do we know if there's a chance this PR can be merged? i.e. will @Oberon00 pull the changes when all checks out? It would be nice to not have to maintain our own private branch of this.

kaetemi commented 2 years ago

We're using this PR in our fork for Ryzom Core https://github.com/ryzom/luabind. :)