On 2/9/2018 4:25 PM, Nevin Liber via Boost wrote:
On Fri, Feb 9, 2018 at 2:26 PM, Edward Diener via Boost < boost@lists.boost.org> wrote:
I am all for C++03 libraries upgrading their implementation if a later version of C++ drops support for a previously supported standard library. I was one of the many people who worked to change a number of Boost libraries from using std::auto_ptr to using std::unique_ptr when it was appropriate.
I'm not. For instance: if the library author wishes to make an improvement to their library that they may eventually propose to the committee, they can modify their Boost library and and get user experience.
What someone could do is something like (caution: pseudocode):
#if c++03 or earlier #include
namespace boost { namespace stl { using boost::shared_ptr; using boost::weak_ptr; using boost::enabled_shared_from_this; // ... }} #else #include <memory> namespace boost { namespace stl { using std::shared_ptr; using std::weak_ptr; using std::enabled_shared_from_this; // ... }} While that certainly doesn't solve all issues, it might help.
Please see https://github.com/eldiener/cxx_dual.
If it is something we wanted, we could either encourage library maintainers to do so when their library gets standardized or someone could propose it as a separate library.
Anyway, just a thought...