Discussion:
[std-proposals] shared_ptr constructor from unique_ptr And allocator
v***@gmail.com
2018-11-30 20:28:16 UTC
Permalink
Currently we have in shared_ptr:

template< class Y, class Deleter >
shared_ptr( std::unique_ptr
<http://en.cppreference.com/w/cpp/memory/unique_ptr><Y,Deleter>&& r );

is there any reason why we dont have

template< class Y, class Deleter, class Alloc >
shared_ptr( std::unique_ptr
<http://en.cppreference.com/w/cpp/memory/unique_ptr><Y,Deleter>&& r, Alloc
alloc );

or is it just oversight?
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/443ab29b-89bb-4474-b0d6-071cd96194e5%40isocpp.org.
'Thomas Köppe' via ISO C++ Standard - Future Proposals
2018-12-01 02:30:33 UTC
Permalink
Post by v***@gmail.com
template< class Y, class Deleter >
shared_ptr( std::unique_ptr
<http://en.cppreference.com/w/cpp/memory/unique_ptr><Y,Deleter>&& r );
is there any reason why we dont have
template< class Y, class Deleter, class Alloc >
shared_ptr( std::unique_ptr
<http://en.cppreference.com/w/cpp/memory/unique_ptr><Y,Deleter>&& r,
Alloc alloc );
or is it just oversight?
I'd venture a guess that this is an oversight.
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/d8da5c8b-7e38-47a7-ac54-897e845585af%40isocpp.org.
Loading...