diff options
| author | h0pless <[email protected]> | 2025-08-11 13:18:47 +0300 |
|---|---|---|
| committer | h0pless <[email protected]> | 2025-08-11 13:32:18 +0300 |
| commit | 02b12e13b782df0c0b33c3af0464cf01e2cc0b2a (patch) | |
| tree | d183f1b7a56994d4de1b935097a83bb4aadb9e9b /library/cpp | |
| parent | 43327a715996bc273e3f81fe088ee42cfd17714d (diff) | |
YT-18571: Cosmetics for YT_DEFINE_STRONG_TYPEDEF
commit_hash:48c6dc49d8c0ffb3bbb5fa773dc38bdee243f3c3
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/yt/memory/ref_tracked.h | 4 | ||||
| -rw-r--r-- | library/cpp/yt/misc/strong_typedef.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/library/cpp/yt/memory/ref_tracked.h b/library/cpp/yt/memory/ref_tracked.h index df6a06fcf07..a53f45a9b0d 100644 --- a/library/cpp/yt/memory/ref_tracked.h +++ b/library/cpp/yt/memory/ref_tracked.h @@ -13,10 +13,10 @@ namespace NYT { //////////////////////////////////////////////////////////////////////////////// -YT_DEFINE_STRONG_TYPEDEF(TRefCountedTypeCookie, int) +YT_DEFINE_STRONG_TYPEDEF(TRefCountedTypeCookie, int); constexpr TRefCountedTypeCookie NullRefCountedTypeCookie{-1}; -YT_DEFINE_STRONG_TYPEDEF(TRefCountedTypeKey, const std::type_info*) +YT_DEFINE_STRONG_TYPEDEF(TRefCountedTypeKey, const std::type_info*); //////////////////////////////////////////////////////////////////////////////// diff --git a/library/cpp/yt/misc/strong_typedef.h b/library/cpp/yt/misc/strong_typedef.h index 074d523e226..a365bca24bb 100644 --- a/library/cpp/yt/misc/strong_typedef.h +++ b/library/cpp/yt/misc/strong_typedef.h @@ -67,6 +67,7 @@ private: struct T ## Tag \ { }; \ using T = ::NYT::TStrongTypedef<TUnderlying, T##Tag>; \ + static_assert(true) template <class T> struct TStrongTypedefTraits; |
