aboutsummaryrefslogtreecommitdiffstats
path: root/util/ysafeptr.h
diff options
context:
space:
mode:
authorcobat <cobat@yandex-team.ru>2022-02-10 16:49:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:07 +0300
commit1d2e8a8e9976488ea69a7e4763aa749244f82612 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/ysafeptr.h
parente486e109b08823b61996f2154f0bc6b7c27a4af4 (diff)
downloadydb-1d2e8a8e9976488ea69a7e4763aa749244f82612.tar.gz
Restoring authorship annotation for <cobat@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/ysafeptr.h')
-rw-r--r--util/ysafeptr.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/ysafeptr.h b/util/ysafeptr.h
index d9678ff93a..af7dfd4bed 100644
--- a/util/ysafeptr.h
+++ b/util/ysafeptr.h
@@ -6,20 +6,20 @@
#include <util/system/tls.h>
////////////////////////////////////////////////////////////////////////////////////////////////////
-// There are different templates of pointers:
-// 1. Simple pointers.
-// 2. TPtr with refereces.
-// 3. TObj/TMObj with ownership. After destruction of a TObj the object it referenced to is
-// cleaned up and marked as non valid. Similarly does TMobj organizing the parallel ownership
-// of an object.
-//
-// Limitations:
-// 1. It may be necessary to use BASIC_REGISTER_CLASS() in .cpp files to be able to use a
-// pointer to a forward declared class.
-// 2. It's prohibited to override the 'new' operator, since the standard 'delete' will be used
-// for destruction of objects (because of 'delete this').
+// There are different templates of pointers:
+// 1. Simple pointers.
+// 2. TPtr with refereces.
+// 3. TObj/TMObj with ownership. After destruction of a TObj the object it referenced to is
+// cleaned up and marked as non valid. Similarly does TMobj organizing the parallel ownership
+// of an object.
+//
+// Limitations:
+// 1. It may be necessary to use BASIC_REGISTER_CLASS() in .cpp files to be able to use a
+// pointer to a forward declared class.
+// 2. It's prohibited to override the 'new' operator, since the standard 'delete' will be used
+// for destruction of objects (because of 'delete this').
////////////////////////////////////////////////////////////////////////////////////////////////////
-
+
#if defined(_MSC_VER) && defined(_DEBUG)
#include <util/system/winint.h>
#define CHECK_YPTR2