Loki-Astari / ThorsMongo

C++ MongoDB API and BSON/JSON Serialization library
GNU General Public License v3.0
316 stars 72 forks source link

Add support for shared_ptr with polymorphism #55

Closed scgroot closed 1 year ago

scgroot commented 4 years ago

See issue #54

mjkl-gh commented 1 year ago

@Loki-Astari is it possible to merge this MR? I'm currently in need of this functionality

Loki-Astari commented 1 year ago

This is an old one and a lot has changed.

Note: The functionality for std::unique_ptr already exists. I have added the functionality for std::shared_ptr (but you need to define SCGRROT_SHARED_PTR_SUPPRT) See: src/Serialize/Traits.h

This is now in the master branch. I am getting this published on brew now (but that usually takes a few days).

Loki-Astari commented 1 year ago

This code has been merged into master. Define 'SCGRROT_SHARED_PTR_SUPPRT' in your build tools to activate the functionality.

Loki-Astari commented 1 year ago

Code now available via homebrew as well.

Loki-Astari commented 1 year ago

https://github.com/Homebrew/homebrew-core/pull/135316