Boost logo

Boost :

Subject: Re: [boost] [ Interest? ] [ out_ptr ] Tiny C++ Abstraction for C-Style Output Pointers
From: Bjorn Reese (breese_at_[hidden])
Date: 2018-07-02 22:20:37


On 06/28/18 21:03, ThePhD via Boost wrote:

> out_ptr is a small abstraction for making types such as
> std::unique_ptr, std::shared_ptr, boost::shared_ptr, and the upcoming
> std::retain_ptr
> <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0468r0.html> work
> work C-Style output functions as a parameter, addressing the need of
> wanting to be able to do "my_c_api_init( foo, bar, &my_smart_ptr );". It's

Does out_ptr have other use-cases than C interoperability?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk