This commit is contained in:
MoneroOcean
2020-07-15 10:57:50 -07:00
parent 3faf249d6a
commit 637bb45fe0
10 changed files with 348 additions and 1928 deletions
+7 -1
View File
@@ -147,7 +147,8 @@ namespace misc_utils
{}
~call_befor_die()
{
m_func();
try { m_func(); }
catch (...) { /* ignore */ }
}
};
@@ -158,5 +159,10 @@ namespace misc_utils
return slc;
}
template<typename T> struct struct_init: T
{
struct_init(): T{} {}
};
}
}