[FEATURE] allow shared_ptr return type
Merge pull request #3 from hroest/Feature/sharedPtr

[FEATURE] allow shared_ptr return type