1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

integrating the existing state of TON Storage / TON Payments / CPS Fift development branches

This commit is contained in:
ton 2020-05-27 22:10:46 +04:00
parent 040df63c98
commit 4e2624459b
153 changed files with 10760 additions and 1695 deletions

View file

@ -21,6 +21,11 @@
#include "td/utils/ScopeGuard.h"
namespace td {
Ref<CntObject> CntObject::clone() const {
return Ref<CntObject>{make_copy(), Ref<CntObject>::acquire_t()};
}
namespace detail {
struct SafeDeleter {
public:

View file

@ -83,6 +83,7 @@ class CntObject {
void assert_unique() const {
assert(is_unique());
}
Ref<CntObject> clone() const;
};
typedef Ref<CntObject> RefAny;
@ -159,6 +160,7 @@ struct static_cast_ref {};
namespace detail {
void safe_delete(const CntObject* ptr);
}
template <class T>
class Ref {
T* ptr;