Adding unique_ptr members to classes


In the docs, it is stated that ChaiScript automatically allows conversions between pointer, reference, shared_ptr, value, etc. However, this does not include unique_ptr. Why is this? I can add my own conversion operator easily enough, but it’d be nice if unique_ptrs were treated the same way as other pointer/reference types.


You are 100% correct. I’ve kind of been waiting for someone else to bring it up before I tacked it :smile:

But I also needed to get move-only object types fully supported inside of Boxed_Value before it would have even been possible.

Would you mind creating an issue on github so that it’s not forgotten? I’ll try to get to it before the next release, which I hope to make at the end of October.