diff options
author | luigi1111 <luigi1111w@gmail.com> | 2024-02-24 10:04:04 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2024-02-24 10:04:04 -0500 |
commit | 9132d4eea0d61e40f10d9cfce849c088c1fec08e (patch) | |
tree | 1d7b96920f5e27b1fd2cafcce49e6db37435836b | |
parent | Merge pull request #9128 (diff) | |
parent | Cleanup extra memory allocation, and port boost::shared_ptr to std::shared_ptr. (diff) | |
download | monero-9132d4eea0d61e40f10d9cfce849c088c1fec08e.tar.xz |
Merge pull request #9132
9cd4757 Cleanup extra memory allocation, and port boost::shared_ptr to std::shared_ptr. (0xFFFC0000)
-rw-r--r-- | contrib/epee/include/misc_language.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/epee/include/misc_language.h b/contrib/epee/include/misc_language.h index ee07bbe8f..4abc2f982 100644 --- a/contrib/epee/include/misc_language.h +++ b/contrib/epee/include/misc_language.h @@ -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; } |