Boost logo

Boost :

Subject: Re: [boost] Curiousity question
From: Edward Diener (eldiener_at_[hidden])
Date: 2016-10-12 20:17:59


On 10/12/2016 7:09 PM, Vinnie Falco wrote:
> On Wed, Oct 12, 2016 at 6:58 PM, Edward Diener <eldiener_at_[hidden]> wrote:
>> You are designing or working on a library, perhaps for Boost, perhaps for
>> fun, and part of the design of the library has some public functionality
>> taking a shared pointer as input. You:
>> ...
>> 2) Use std::shared_ptr
>
> I would use std::shared_ptr and I'll answer the broader version of
> your question.
>
> For my libraries, I assume C++11. Its too much work to try to support
> older compilers. There are so many features and advantages to having
> C++11 as the minimum language support that it is a very logical choice
> to require it.

Your assumption, of course is that any C++11 compiler implementation
supports std::shared_ptr. Fair enough. Thanks !


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