mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
core: advertise element type in shared_ptr<>
Other smart pointers also do that. Will help foreign_ptr<>.
This commit is contained in:
committed by
Avi Kivity
parent
a77ecbeeef
commit
0b4ee2ff60
@@ -43,6 +43,8 @@ private:
|
||||
return shared_ptr(new data(std::forward<A>(a)...));
|
||||
}
|
||||
public:
|
||||
using element_type = T;
|
||||
|
||||
shared_ptr() = default;
|
||||
shared_ptr(const shared_ptr& x) : _p(x._p) {
|
||||
if (_p) {
|
||||
|
||||
Reference in New Issue
Block a user