mirror of
https://github.com/monero-project/monero.git
synced 2024-12-22 19:49:30 +00:00
Cleanup extra memory allocation, and port boost::shared_ptr to std::shared_ptr.
This commit is contained in:
parent
059028a30a
commit
9cd4757c88
1 changed files with 3 additions and 3 deletions
|
@ -74,10 +74,10 @@ namespace misc_utils
|
|||
|
||||
struct call_befor_die_base
|
||||
{
|
||||
virtual ~call_befor_die_base(){}
|
||||
virtual ~call_befor_die_base() = default;
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<call_befor_die_base> auto_scope_leave_caller;
|
||||
typedef std::shared_ptr<call_befor_die_base> auto_scope_leave_caller;
|
||||
|
||||
|
||||
template<class t_scope_leave_handler>
|
||||
|
@ -96,7 +96,7 @@ namespace misc_utils
|
|||
template<class t_scope_leave_handler>
|
||||
auto_scope_leave_caller create_scope_leave_handler(t_scope_leave_handler f)
|
||||
{
|
||||
auto_scope_leave_caller slc(new call_befor_die<t_scope_leave_handler>(f));
|
||||
auto_scope_leave_caller slc = std::make_shared<call_befor_die<t_scope_leave_handler>>(f);
|
||||
return slc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue